Skip to content

Commit 30ebe4e

Browse files
committed
[Tests] add more test coverage
1 parent a77008f commit 30ebe4e

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.nycrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"instrumentation": false,
55
"sourceMap": false,
66
"reporter": "html",
7-
"lines": 96,
7+
"lines": 95.95,
88
"statements": 95,
99
"functions": 96,
1010
"branches": 92,

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,4 +182,3 @@ matrix:
182182
allow_failures:
183183
- os: osx
184184
- env: TEST=true ALLOW_FAILURE=true
185-
- env: COVERAGE=true

test/fn.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,13 @@ test('function name', function (t) {
1616
var obj = [ 1, 2, f, 4 ];
1717
t.equal(inspect(obj), '[ 1, 2, [Function: xxx], 4 ]');
1818
});
19+
20+
test('anon function', function (t) {
21+
var f = (function () {
22+
return function () {};
23+
}());
24+
var obj = [ 1, 2, f, 4 ];
25+
t.equal(inspect(obj), '[ 1, 2, [Function], 4 ]');
26+
27+
t.end();
28+
});

0 commit comments

Comments
 (0)