From 0794a90c040db871c0cb8dab9556dd727e20fb60 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sun, 13 Oct 2024 02:18:08 -0700 Subject: [PATCH] Fix typo removing argument from sessionStorage length mock. --- test/TEST_VECTORS.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/TEST_VECTORS.js b/test/TEST_VECTORS.js index 393c09c..655c0cb 100644 --- a/test/TEST_VECTORS.js +++ b/test/TEST_VECTORS.js @@ -5,7 +5,7 @@ export const STORAGE = (() => { const _sessionStorage = {} Object.defineProperty(globalThis, 'sessionStorage', { value: { - length: Object.entries().length, + length: Object.entries(_sessionStorage).length, setItem: (key, value) => _sessionStorage[key] = value, getItem: (key) => _sessionStorage[key], removeItem: (key) => delete _sessionStorage[key], -- 2.34.1