aboutsummaryrefslogtreecommitdiff
path: root/integration/bunjs-only-snippets/web-globals.test.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-06-22 23:21:48 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-06-22 23:21:48 -0700
commit729d445b6885f69dd2c6355f38707bd42851c791 (patch)
treef87a7c408929ea3f57bbb7ace380cf869da83c0e /integration/bunjs-only-snippets/web-globals.test.js
parent25f820c6bf1d8ec6d444ef579cc036b8c0607b75 (diff)
downloadbun-729d445b6885f69dd2c6355f38707bd42851c791.tar.gz
bun-729d445b6885f69dd2c6355f38707bd42851c791.tar.zst
bun-729d445b6885f69dd2c6355f38707bd42851c791.zip
change the directory structurejarred/rename
Diffstat (limited to 'integration/bunjs-only-snippets/web-globals.test.js')
-rw-r--r--integration/bunjs-only-snippets/web-globals.test.js46
1 files changed, 0 insertions, 46 deletions
diff --git a/integration/bunjs-only-snippets/web-globals.test.js b/integration/bunjs-only-snippets/web-globals.test.js
deleted file mode 100644
index ac7c22e84..000000000
--- a/integration/bunjs-only-snippets/web-globals.test.js
+++ /dev/null
@@ -1,46 +0,0 @@
-import { expect, test } from "bun:test";
-
-test("exists", () => {
- expect(typeof URL !== "undefined").toBe(true);
- expect(typeof URLSearchParams !== "undefined").toBe(true);
- expect(typeof DOMException !== "undefined").toBe(true);
- expect(typeof Event !== "undefined").toBe(true);
- expect(typeof EventTarget !== "undefined").toBe(true);
- expect(typeof AbortController !== "undefined").toBe(true);
- expect(typeof AbortSignal !== "undefined").toBe(true);
- expect(typeof CustomEvent !== "undefined").toBe(true);
- expect(typeof Headers !== "undefined").toBe(true);
- expect(typeof ErrorEvent !== "undefined").toBe(true);
- expect(typeof CloseEvent !== "undefined").toBe(true);
- expect(typeof MessageEvent !== "undefined").toBe(true);
- expect(typeof TextEncoder !== "undefined").toBe(true);
- expect(typeof WebSocket !== "undefined").toBe(true);
-});
-
-test("CloseEvent", () => {
- var event = new CloseEvent("close", { reason: "world" });
- expect(event.type).toBe("close");
- const target = new EventTarget();
- var called = false;
- target.addEventListener("close", ({ type, reason }) => {
- expect(type).toBe("close");
- expect(reason).toBe("world");
- called = true;
- });
- target.dispatchEvent(event);
- expect(called).toBe(true);
-});
-
-test("MessageEvent", () => {
- var event = new MessageEvent("message", { data: "world" });
- expect(event.type).toBe("message");
- const target = new EventTarget();
- var called = false;
- target.addEventListener("message", ({ type, data }) => {
- expect(type).toBe("message");
- expect(data).toBe("world");
- called = true;
- });
- target.dispatchEvent(event);
- expect(called).toBe(true);
-});
0-next.1&id=c8544a2651af4db1dcba0905500d77073836c255&follow=1'>Clean up, simplify types (#1816)Gravatar Drew Powers 32-184/+164 Also add JSDoc to external types 2021-11-16Fix Windows CSS bundling bug (#1840)Gravatar Drew Powers 16-240/+290 * Fix Windows CSS bundling bug JS components’ styles accidentally left out of final build on Windows * Review feedback 2021-11-16[ci] yarn formatGravatar natemoo-re 1-5/+5 2021-11-16Implement `client:only` handling (#1716)Gravatar Nate Moore 9-47/+131 * WIP: improve `client:only` handling * feat: implement `client:only` in renderer * test: reenable client:only tests * feat: improve SSR error messages * fix: add `resolvePath` method to Metadata * test: fix client-only test * chore: fix custom-elements handling * test: revert `custom-elements` test change * fix: do not assign a default renderer even if there's only one configured * chore: bump compiler * chore: add changeset 2021-11-16[ci] collect statsGravatar FredKSchott 1-0/+1 2021-11-15Add Autoprefixer change to 0.21 migration guide (#1841)Gravatar Drew Powers 1-0/+16 2021-11-15[ci] yarn formatGravatar jonathantneal 1-0/+2