Skip to content
Browse files

should not return ls.prototype.key

  • Loading branch information...
1 parent c8bdb31 commit a0cd89a7c76df8197f323ca202b9bf0da846de0a @coolaj86 committed Jan 25, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 tests/test.js
View
3 tests/test.js
@@ -5,6 +5,9 @@
, localStorage = require('localStorage')
;
+ // don't return prototypical things
+ assert.strictEqual(localStorage.getItem('key'), null);
+
// can't make assuptions about key positioning
localStorage.setItem('a', 1);
assert.strictEqual(localStorage.key(0), 'a');

0 comments on commit a0cd89a

Please sign in to comment.
Something went wrong with that request. Please try again.