Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/unitest/matcher/mod.ts>toBeGreaterThanOrEqual

๐Ÿƒ Deno-first universal unit testing framework
Latest
function toBeGreaterThanOrEqual
Re-export
import { toBeGreaterThanOrEqual } from "https://deno.land/x/unitest@v1.0.0-beta.82/matcher/mod.ts";

Use .toBeGreaterThanOrEqual to compare actual >= expected for number or bigint

import { expect, test } from "https://deno.land/x/unitest@$VERSION/mod.ts";

test("passes when value greater than or equal to", () => {
  expect(100).toBeGreaterThanOrEqual(99);
  expect(100n).toBeGreaterThanOrEqual(100n);
  expect(0).not.toBeGreaterThanOrEqual(1);
});

Parameters

actual: number | bigint
expected: number | bigint