From e3415ef9dee1fb6ba7f488d75c873896a0236481 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 26 Jan 2013 02:24:05 -0700 Subject: [PATCH] test that we don't return prototype methods --- tests/test.js | 3 +++ 1 file changed, 3 insertions(+) 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);