Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/unitest/matcher/to_be_greater_than_or_equal.ts>toBeGreaterThanOrEqual

🃏 Deno-first universal unit testing framework
Latest
function toBeGreaterThanOrEqual
import { toBeGreaterThanOrEqual } from "https://deno.land/x/unitest@v1.0.0-beta.82/matcher/to_be_greater_than_or_equal.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