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:
RafaelGSS 2024-09-28 16:34:33 -03:00
parent b0f025208f
commit 6c92c1391a

View File

@ -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),
});
}