Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b230181
commit 99c4736
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
var filter = require('..'); | ||
var test = require('tape'); | ||
|
||
test('skip over holes', function(t) { | ||
var arr = new Array(5); | ||
delete arr.filter; | ||
This comment has been minimized.
Sorry, something went wrong. |
||
var res = filter(arr, function(el) { | ||
return false; | ||
}); | ||
t.deepEqual(res, []); | ||
t.end(); | ||
}); |
duh, fixed. covert looks cool!