Skip to content

Commit

Permalink
tests: fix fragile size_of test
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed May 11, 2024
1 parent b519f94 commit c33207e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions size_of.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assertEquals } from "./_test_util.ts";
import { assert, assertEquals } from "./_test_util.ts";
import { sizeOf } from "./size_of.ts";

Deno.test({
Expand Down Expand Up @@ -73,9 +73,8 @@ Deno.test({
Deno.test({
name: "sizeOf - Error",
fn() {
assertEquals(
sizeOf(new URIError("boo hoo", { cause: new Error("boo") })),
496,
assert(
sizeOf(new URIError("boo hoo", { cause: new Error("boo") })) >= 496,
);
},
});
Expand Down

0 comments on commit c33207e

Please sign in to comment.