Permalink
Browse files

test that we don't return prototype methods

  • Loading branch information...
1 parent a58d456 commit e3415ef9dee1fb6ba7f488d75c873896a0236481 @coolaj86 coolaj86 committed Jan 26, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 tests/test.js
View
@@ -9,6 +9,9 @@
;
function runTest(storage) {
+ // should not return prototype properties
+ assert.strictEqual(null, Object.getItem('key'));
+
assert.strictEqual(0, Object.keys(storage).length);
assert.strictEqual(0, storage.length);

0 comments on commit e3415ef

Please sign in to comment.