forked from ryanluker/vscode-coverage-gutters
-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.js
36 lines (29 loc) · 863 Bytes
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
'use strict';
const assert = require('assert');
const testFunc = require('./test-coverage').test;
describe('test func', function() {
it('should show coverage on line 8', function() {
var num = testFunc(1);
assert(num===true);
});
it('should show coverage on line 6', function() {
var num = testFunc(4);
assert(num==="reallyNull");
});
it('should show coverage', function() {
var num = testFunc(3);
assert(num==="notNull");
});
it('should show coverage', function() {
var num = testFunc(9);
assert(true);
});
it('should show coverage on line 9', function() {
var num = testFunc(7);
assert(num==="wap");
});
it('should show coverage on line 9 x2', function() {
var num = testFunc(5);
assert(num==="wap");
});
});