Skip to content

Commit 9ae6982

Browse files
targosdanielleadams
authored andcommitted
test: check that fetch globals are disabled by default
PR-URL: #42015 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
1 parent bc3d8a7 commit 9ae6982

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/parallel/test-fetch-disabled.mjs

Lines changed: 9 additions & 0 deletions
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)