From 8effa394100b26805cc9ca298659f1a5a7c3dda9 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Thu, 24 Feb 2022 00:59:19 -0800 Subject: [bun.js] Add `ShadowRealm` --- integration/bunjs-only-snippets/fetch.js | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 integration/bunjs-only-snippets/fetch.js (limited to 'integration/bunjs-only-snippets/fetch.js') diff --git a/integration/bunjs-only-snippets/fetch.js b/integration/bunjs-only-snippets/fetch.js deleted file mode 100644 index bb4345659..000000000 --- a/integration/bunjs-only-snippets/fetch.js +++ /dev/null @@ -1,17 +0,0 @@ -import fs from "fs"; - -const urls = ["https://example.com", "http://example.com"]; -for (let url of urls) { - const response = await fetch(url); - const text = await response.text(); - - if ( - fs.readFileSync( - import.meta.path.substring(0, import.meta.path.lastIndexOf("/")) + - "/fetch.js.txt", - "utf8" - ) !== text - ) { - throw new Error("Expected fetch.js.txt to match snapshot"); - } -} -- cgit v1.2.3