]> zoso.dev Git - libnemo.git/commitdiff
Fix typo removing argument from sessionStorage length mock.
authorChris Duncan <chris@zoso.dev>
Sun, 13 Oct 2024 09:18:08 +0000 (02:18 -0700)
committerChris Duncan <chris@zoso.dev>
Sun, 13 Oct 2024 09:18:08 +0000 (02:18 -0700)
test/TEST_VECTORS.js

index 393c09cfcf32945a382492385d73ddbc333df977..655c0cb20e3c4f80cff391c46c62cdcdeb3cf894 100644 (file)
@@ -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],