Skip to content

Commit

Permalink
bring in nodeunit for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
psalaets committed Jul 15, 2013
1 parent 0d5fa41 commit c10487b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
node-schedule.tmproj
.DS_Store
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@
"url": "http://mattpatenaude.com"
},
"main": "./lib/schedule.js",
"scripts": {
"test": "./node_modules/.bin/nodeunit test"
},
"repository": {
"type": "git",
"url": "https://github.com/mattpat/node-schedule.git"
},
"devDependencies": {
"nodeunit": "~0.8.1"
}
}
10 changes: 10 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
var main = require('../package.json').main;
var schedule = require('../' + main);

module.exports = {
"just run": function(test) {
test.ok(true);

test.done();
}
}

0 comments on commit c10487b

Please sign in to comment.