Skip to content

Commit e9f2484

Browse files
committed
fix test
1 parent 931b766 commit e9f2484

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/parallel/test-inspector-dom-storage.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const assert = require('assert');
66
common.skipIfInspectorDisabled();
77
const { DOMStorage, Session } = require('node:inspector/promises');
88
const { pathToFileURL } = require('node:url');
9+
const path = require('node:path');
910

1011

1112
async function test() {
@@ -14,7 +15,8 @@ async function test() {
1415

1516
await session.post('DOMStorage.enable');
1617

17-
const localStorageFileUrl = pathToFileURL('./localstorage.db').toString();
18+
const localStorageFileUrl =
19+
pathToFileURL(path.join(process.cwd(), 'localstorage.db')).href;
1820

1921
const { storageKey } = await session.post('Storage.getStorageKey');
2022
assert.strictEqual(storageKey, localStorageFileUrl);

0 commit comments

Comments
 (0)