Skip to content

Commit 1b1104e

Browse files
RafaelGSSaduh95
authored andcommitted
test: add resource to internal module stat test
PR-URL: #55157 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
1 parent ea7aaf3 commit 1b1104e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/parallel/test-permission-fs-internal-module-stat.js

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ if (!common.hasCrypto) {
1010

1111
const { internalBinding } = require('internal/test/binding');
1212
const assert = require('node:assert');
13+
const path = require('node:path');
1314
const fixtures = require('../common/fixtures');
1415

1516
const blockedFile = fixtures.path('permission', 'deny', 'protected-file.md');
@@ -22,5 +23,6 @@ for (let i = 0; i < 10_000; i++) {
2223
}, {
2324
code: 'ERR_ACCESS_DENIED',
2425
permission: 'FileSystemRead',
26+
resource: path.toNamespacedPath(blockedFile),
2527
});
2628
}

0 commit comments

Comments
 (0)