Skip to content

Commit fce3c84

Browse files
committed
assert that undefined key throws
1 parent debd0e3 commit fce3c84

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ check('zero', 0, 'foo');
5252
check('a.badkey', 'foo', 'foo');
5353
check('a.badkey.anotherbadkey', 'foo', 'foo');
5454

55-
//check undefined key doesn't throw errors and uses default
56-
check(undefined, undefined);
57-
check(undefined, 'foo', 'foo');
55+
//check undefined key throws an error
56+
assert.throws(delve.bind(this, obj, undefined));
57+
assert.throws(delve.bind(this, obj, undefined, 'foo'));
5858

5959
//check undefined obj doesn't throw errors and uses default
6060
var backupObj = obj;

0 commit comments

Comments
 (0)