Skip to content

Commit

Permalink
test: add resource to internal module stat test
Browse files Browse the repository at this point in the history
PR-URL: #55157
Reviewed-By: Yagiz Nizipli <[email protected]>
  • Loading branch information
RafaelGSS authored and aduh95 committed Oct 9, 2024
1 parent ea7aaf3 commit 1b1104e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/parallel/test-permission-fs-internal-module-stat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -22,5 +23,6 @@ for (let i = 0; i < 10_000; i++) {
}, {
code: 'ERR_ACCESS_DENIED',
permission: 'FileSystemRead',
resource: path.toNamespacedPath(blockedFile),
});
}

0 comments on commit 1b1104e

Please sign in to comment.