Skip to content

Commit ffe7dd1

Browse files
authored
test: check that fetch globals are disabled by default
PR-URL: #42015 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Mestery <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Akhil Marsonya <[email protected]>
1 parent 5348552 commit ffe7dd1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/parallel/test-fetch-disabled.mjs

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import '../common/index.mjs';
2+
3+
import assert from 'assert';
4+
5+
assert.strictEqual(typeof globalThis.fetch, 'undefined');
6+
assert.strictEqual(typeof globalThis.FormData, 'undefined');
7+
assert.strictEqual(typeof globalThis.Headers, 'undefined');
8+
assert.strictEqual(typeof globalThis.Request, 'undefined');
9+
assert.strictEqual(typeof globalThis.Response, 'undefined');

0 commit comments

Comments
 (0)