Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
biggora committed Feb 20, 2013
1 parent 8b9f59b commit dc74aed
Show file tree
Hide file tree
Showing 9 changed files with 647 additions and 300 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "caminte",
"description": "ORM for every database: redis, mysql, neo4j, mongodb, postgres, sqlite",
"version": "0.0.2-1",
"version": "0.0.2-2",
"author": "Aleksej Gordejev <[email protected]> (http://www.gordejev.lv)",
"keywords": [
"caminte",
Expand All @@ -12,7 +12,7 @@
"mongodb",
"neo4j",
"postgres",
"sqlite"
"sqlite3"
],
"directories": {
"lib": "lib",
Expand All @@ -24,7 +24,7 @@
},
"main": "index.js",
"scripts": {
"test": "EXCEPT=cradle,neo4j nodeunit test/*_test*"
"test": "nodeunit test/*_test*"
},
"engines": [
"node >= 0.6.0"
Expand Down
10 changes: 10 additions & 0 deletions tests/adapters_test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
var caminte = require('../'),
Schema = caminte.Schema,
test = caminte.test;

var schema = new Schema('memory');

test(module.exports, schema);

test.skip('hasMany should be cached');

8 changes: 8 additions & 0 deletions tests/caminte_test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
var caminte = require('../index');
require('./spec_helper').init(module.exports);

it('should expose version', function (test) {
console.log('version:', caminte.version);
test.ok(caminte.version);
test.done();
});
Loading

0 comments on commit dc74aed

Please sign in to comment.