We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 931b766 commit e9f2484Copy full SHA for e9f2484
test/parallel/test-inspector-dom-storage.js
@@ -6,6 +6,7 @@ const assert = require('assert');
6
common.skipIfInspectorDisabled();
7
const { DOMStorage, Session } = require('node:inspector/promises');
8
const { pathToFileURL } = require('node:url');
9
+const path = require('node:path');
10
11
12
async function test() {
@@ -14,7 +15,8 @@ async function test() {
14
15
16
await session.post('DOMStorage.enable');
17
- const localStorageFileUrl = pathToFileURL('./localstorage.db').toString();
18
+ const localStorageFileUrl =
19
+ pathToFileURL(path.join(process.cwd(), 'localstorage.db')).href;
20
21
const { storageKey } = await session.post('Storage.getStorageKey');
22
assert.strictEqual(storageKey, localStorageFileUrl);
0 commit comments