Skip to content

Commit de28796

Browse files
committed
only load code integrity module on Windows
1 parent 93555d0 commit de28796

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/parallel/test-code-integrity.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@
55
const common = require('../common');
66
const assert = require('node:assert');
77
const { describe, it } = require('node:test');
8-
const ci = require('internal/code_integrity');
98

109
// This functionality is currently only on Windows
1110
if (!common.isWindows) {
1211
common.skip('Windows specific test.');
1312
}
1413

14+
const ci = require('internal/code_integrity');
15+
1516
describe('cjs loader code integrity integration tests', () => {
1617
it('should throw an error if a .js file does not pass code integrity policy',
1718
(t) => {

0 commit comments

Comments
 (0)