mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
13 lines
416 B
TypeScript
13 lines
416 B
TypeScript
import { expect, test } from "bun:test";
|
|
import "harness";
|
|
import { join } from "path";
|
|
|
|
// This test was never leaking, as far as i can tell.
|
|
test("request error doesn't leak", async () => {
|
|
expect([join(import.meta.dir, "request-constructor-leak-fixture.js")]).toRun();
|
|
});
|
|
|
|
test("response error doesn't leak", async () => {
|
|
expect([join(import.meta.dir, "response-constructor-leak-fixture.js")]).toRun();
|
|
});
|