test that we don't return prototype methods
This commit is contained in:
parent
a58d4566e0
commit
e3415ef9de
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue