Switch to mocha testing in travis

This commit is contained in:
Anatoliy Chakkaev 2013-03-25 02:25:43 +04:00
parent 716318bedd
commit e91b0d6c49
3 changed files with 8 additions and 9 deletions

View File

@ -51,7 +51,7 @@
}, },
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "nodeunit test/*_test*" "test": "make test"
}, },
"engines": [ "engines": [
"node >= 0.6" "node >= 0.6"

7
test/jugglingdb.test.js Normal file
View File

@ -0,0 +1,7 @@
var jugglingdb = require('../');
describe('jugglingdb', function() {
it('should expose version', function () {
jugglingdb.version.should.equal(require('../package.json').version);
});
});

View File

@ -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();
});