Skip to content

Commit

Permalink
Add test against #1
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasHechenberger committed Feb 9, 2017
1 parent db68c86 commit c6b7ecb
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
63 changes: 63 additions & 0 deletions test/issues/1/coverage.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"coverage": "90.9%",
"expectCount": 33,
"actualCount": 30,
"files": {
"src/lib/AtviseFile.js": {
"expectCount": 1,
"actualCount": 0,
"undocumentLines": [
3
]
},
"src/lib/config/Atviseproject.js": {
"expectCount": 10,
"actualCount": 10,
"undocumentLines": []
},
"src/init/Options.js": {
"expectCount": 3,
"actualCount": 3,
"undocumentLines": []
},
"src/lib/init/Option.js": {
"expectCount": 8,
"actualCount": 8,
"undocumentLines": []
},
"src/init/OptionsValidator.js": {
"expectCount": 2,
"actualCount": 2,
"undocumentLines": []
},
"src/init/InitTask.js": {
"expectCount": 3,
"actualCount": 3,
"undocumentLines": []
},
"src/lib/db/NodeId.js": {
"expectCount": 3,
"actualCount": 3,
"undocumentLines": []
},
"src/config/ProjectConfig.js": {
"expectCount": 1,
"actualCount": 1,
"undocumentLines": []
},
"src/tasks/pull.js": {
"expectCount": 1,
"actualCount": 0,
"undocumentLines": [
1
]
},
"src/tasks/push.js": {
"expectCount": 1,
"actualCount": 0,
"undocumentLines": [
1
]
}
}
}
15 changes: 15 additions & 0 deletions test/issues/1/issue-1.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import expect from 'unexpected';

import Plugin from '../../../src/Plugin';

describe('Issue #1', function() {
const plugin = new Plugin();

plugin.handleConfig({
destination: __dirname,
});

it('should report coverage of 90.9%', function() {
expect(() => plugin.checkCoverage(), 'not to throw');
});
});

0 comments on commit c6b7ecb

Please sign in to comment.