Merge branch 'master' of github.com:coolaj86/node-dom-storage

This commit is contained in:
AJ ONeal 2014-01-28 18:22:18 -07:00
commit c617241c52
2 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,4 @@
DOMStorage sessionStorage & localStorage for NodeJS
=== ===
An inefficient, but as W3C-compliant as possible using only pure JavaScript, `DOMStorage` implementation. An inefficient, but as W3C-compliant as possible using only pure JavaScript, `DOMStorage` implementation.

View File

@ -9,6 +9,9 @@
; ;
function runTest(storage) { function runTest(storage) {
// should not return prototype properties
assert.strictEqual(null, Object.getItem('key'));
assert.strictEqual(0, Object.keys(storage).length); assert.strictEqual(0, Object.keys(storage).length);
assert.strictEqual(0, storage.length); assert.strictEqual(0, storage.length);