From a0cd89a7c76df8197f323ca202b9bf0da846de0a Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 25 Jan 2013 21:12:55 -0700 Subject: [PATCH] should not return ls.prototype.key --- tests/test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test.js b/tests/test.js index 07d8330..f878a4a 100644 --- a/tests/test.js +++ b/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');