Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
note89 committed Aug 29, 2015
1 parent 4b598e7 commit 1e3439f
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 4 deletions.
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "is-it-thursday",
"version": "0.0.1",
"description": "an educated guess if its Thursday or not...",
"version": "0.1.0",
"description": "An educated guess if its Thursday or not...",
"main": "src/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "mocha src/index.test.js -w"
},
"repository": {
"type": "git",
"url": "https://github.com/Niler851/isItThursday.git"
"url": "https://github.com/Niler851/is-it-thursday.git"
},
"keywords": [
"thursday",
Expand All @@ -20,5 +20,9 @@
"license": "GPLv2",
"bugs": {
"url": "https://github.com/Niler851/isItThursday/issues"
},
"devDependencies": {
"chai": "3.2.0",
"mocha": "2.2.5"
}
}
10 changes: 10 additions & 0 deletions src/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
var expect = require('chai').expect;
var isItThursday = require('./index');

describe('is-it-thursday', function(){
describe('huh', function() {
it('should return a good guess', function() {
expect(isItThursday.huh).to.equal("Probably not...");
});
});
});
17 changes: 17 additions & 0 deletions src/npm-debug.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'test' ]
2 info using [email protected]
3 info using [email protected]
4 error Error: ENOENT, open '/home/nils/Programmering/npmProjects/isItThursday/src/package.json'
5 error If you need help, you may report this *entire* log,
5 error including the npm and node versions, at:
5 error <http://github.com/npm/npm/issues>
6 error System Linux 3.16.0-4-amd64
7 error command "/usr/bin/nodejs" "/usr/bin/npm" "test"
8 error cwd /home/nils/Programmering/npmProjects/isItThursday/src
9 error node -v v0.10.29
10 error npm -v 1.4.21
11 error path /home/nils/Programmering/npmProjects/isItThursday/src/package.json
12 error code ENOENT
13 error errno 34
14 verbose exit [ 34, true ]

0 comments on commit 1e3439f

Please sign in to comment.