Skip to content

Commit

Permalink
test: check that fetch globals are disabled by default
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
targos authored and danielleadams committed Apr 24, 2022
1 parent 0329d1e commit de96c6a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/parallel/test-fetch-disabled.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import '../common/index.mjs';

import assert from 'assert';

assert.strictEqual(typeof globalThis.fetch, 'undefined');
assert.strictEqual(typeof globalThis.FormData, 'undefined');
assert.strictEqual(typeof globalThis.Headers, 'undefined');
assert.strictEqual(typeof globalThis.Request, 'undefined');
assert.strictEqual(typeof globalThis.Response, 'undefined');

0 comments on commit de96c6a

Please sign in to comment.