diff --git a/README.md b/README.md index 116eee0..1c9df28 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -DOMStorage +sessionStorage & localStorage for NodeJS === An inefficient, but as W3C-compliant as possible using only pure JavaScript, `DOMStorage` implementation. diff --git a/tests/test.js b/tests/test.js index a3df772..9e02494 100644 --- a/tests/test.js +++ b/tests/test.js @@ -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);