Skip to content

Commit 6f567ab

Browse files
committed
test: add --localstorage-file flag to --no-experimental-webstorage test
1 parent 5f3368f commit 6f567ab

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/parallel/test-webstorage.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,12 @@ describe('webstorage quota for localStorage and sessionStorage', () => {
117117

118118
test('disabled with --no-experimental-webstorage', async () => {
119119
for (const api of ['Storage', 'localStorage', 'sessionStorage']) {
120-
const cp = await spawnPromisified(process.execPath, ['--no-experimental-webstorage', '-e', api]);
120+
const cp = await spawnPromisified(process.execPath, [
121+
'--no-experimental-webstorage',
122+
'--localstorage-file',
123+
'./test/fixtures/localstoragefile-global-test',
124+
'-e', api
125+
]);
121126

122127
assert.strictEqual(cp.code, 1);
123128
assert.strictEqual(cp.signal, null);

0 commit comments

Comments
 (0)