mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
20 lines
465 B
JavaScript
20 lines
465 B
JavaScript
import { describe, test } from "bun:test";
|
|
import assert from "node:assert";
|
|
import { URL } from "node:url";
|
|
|
|
// TODO: Support throwing appropriate error.
|
|
describe.todo("URL.revokeObjectURL", () => {
|
|
test("invalid input", () => {
|
|
// Test ensures that the function receives the url argument.
|
|
assert.throws(
|
|
() => {
|
|
URL.revokeObjectURL();
|
|
},
|
|
{
|
|
code: "ERR_MISSING_ARGS",
|
|
name: "TypeError",
|
|
},
|
|
);
|
|
});
|
|
});
|