mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
16 lines
338 B
JavaScript
16 lines
338 B
JavaScript
import { describe, test } from "bun:test";
|
|
import assert from "node:assert";
|
|
import { URL } from "node:url";
|
|
|
|
describe("URL", () => {
|
|
// TODO: Fix error properties
|
|
test.skip("null character", () => {
|
|
assert.throws(
|
|
() => {
|
|
new URL("a\0b");
|
|
},
|
|
{ code: "ERR_INVALID_URL", input: "a\0b" },
|
|
);
|
|
});
|
|
});
|