From e91b0d6c495a5da14d00eff8f37eb612982b547b Mon Sep 17 00:00:00 2001 From: Anatoliy Chakkaev Date: Mon, 25 Mar 2013 02:25:43 +0400 Subject: [PATCH] Switch to mocha testing in travis --- package.json | 2 +- test/jugglingdb.test.js | 7 +++++++ test/jugglingdb_test.js | 8 -------- 3 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 test/jugglingdb.test.js delete mode 100644 test/jugglingdb_test.js diff --git a/package.json b/package.json index 36e923e5..99870f6c 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ }, "main": "index.js", "scripts": { - "test": "nodeunit test/*_test*" + "test": "make test" }, "engines": [ "node >= 0.6" diff --git a/test/jugglingdb.test.js b/test/jugglingdb.test.js new file mode 100644 index 00000000..dc80dfdb --- /dev/null +++ b/test/jugglingdb.test.js @@ -0,0 +1,7 @@ +var jugglingdb = require('../'); + +describe('jugglingdb', function() { + it('should expose version', function () { + jugglingdb.version.should.equal(require('../package.json').version); + }); +}); diff --git a/test/jugglingdb_test.js b/test/jugglingdb_test.js deleted file mode 100644 index 2ec306f4..00000000 --- a/test/jugglingdb_test.js +++ /dev/null @@ -1,8 +0,0 @@ -var juggling = require('../index'); -require('./spec_helper').init(module.exports); - -it('should expose version', function (test) { - console.log('version:', juggling.version); - test.ok(juggling.version); - test.done(); -});