Skip to content

Commit

Permalink
add holes test for #1
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber committed Dec 25, 2013
1 parent b230181 commit 99c4736
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/holes.js
@@ -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.

Copy link
@juliangruber

juliangruber Dec 26, 2013

Author Owner

duh, fixed. covert looks cool!

var res = filter(arr, function(el) {
return false;
});
t.deepEqual(res, []);
t.end();
});

0 comments on commit 99c4736

Please sign in to comment.