From 9369b985921812aa09f46f0347dc3c938b087d8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Wed, 16 Feb 2022 14:45:13 +0100 Subject: [PATCH] test: check that fetch globals are disabled by default --- test/parallel/test-fetch-disabled.mjs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/parallel/test-fetch-disabled.mjs diff --git a/test/parallel/test-fetch-disabled.mjs b/test/parallel/test-fetch-disabled.mjs new file mode 100644 index 00000000000000..839cdf8f2ac947 --- /dev/null +++ b/test/parallel/test-fetch-disabled.mjs @@ -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');