mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
test: add resource to internal module stat test
PR-URL: https://github.com/nodejs/node/pull/55157 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
This commit is contained in:
parent
b0f025208f
commit
6c92c1391a
@ -10,6 +10,7 @@ if (!common.hasCrypto) {
|
||||
|
||||
const { internalBinding } = require('internal/test/binding');
|
||||
const assert = require('node:assert');
|
||||
const path = require('node:path');
|
||||
const fixtures = require('../common/fixtures');
|
||||
|
||||
const blockedFile = fixtures.path('permission', 'deny', 'protected-file.md');
|
||||
@ -22,5 +23,6 @@ for (let i = 0; i < 10_000; i++) {
|
||||
}, {
|
||||
code: 'ERR_ACCESS_DENIED',
|
||||
permission: 'FileSystemRead',
|
||||
resource: path.toNamespacedPath(blockedFile),
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user