Skip to content

Commit

Permalink
Revert test
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Dec 22, 2014
1 parent e4fc2d1 commit ad98e82
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ coverage
.idea
.npm-debug.log
npm-debug.log
lcov.info
lcov.info
iot.db
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ lcov.info
.gitignore
.jslint.conf
coverage
iot.db
Binary file modified iot.db
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
],
"scripts": {
"jslint": "jslint --edition=latest 'lib/*.js' 'index.js' 'lib/coap/*.js' 'lib/database/*.js' 'lib/rest/*.js' ",
"test": "istanbul cover node_modules/mocha/bin/_mocha -- -R spec",
"test": "rm iot.db;istanbul cover node_modules/mocha/bin/_mocha -- -R spec",
"sendCoverage": "CODECLIMATE_REPO_TOKEN=8de471b0274afb32071817e5bd308e005d33e1b5227c267dc33c974d9027a932 codeclimate < coverage/lcov.info"
}
}
}
1 change: 1 addition & 0 deletions test/common.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
global.expect = require("chai").expect;
global.assert = require("chai").assert;
global.should = require('chai').should;
global.callback = require('chai').callback;

var DB =require("../lib/database/sqlite_helper")
,sqlite = new DB();
Expand Down
8 changes: 7 additions & 1 deletion test/unit/db_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ var DB =require("../../lib/database/sqlite_helper")
,_ = require("underscore");

describe('Throw Error Test', function() {
this.timeout(500);

it('should give more info', function(done) {
done();
});


it('should throw error on errorHandler', function () {
expect(sqlite.errorHandler()).to.throw();
Expand Down Expand Up @@ -41,4 +47,4 @@ describe('DB Test', function() {
}
})
});
});
});

0 comments on commit ad98e82

Please sign in to comment.