Skip to main content
Module

x/unitest/mod.ts>anyObject

🃏 Deno-first universal unit testing framework
Latest
function anyObject
import { anyObject } from "https://deno.land/x/unitest@v1.0.0-beta.82/mod.ts";

matches any object.

import {
  anyObject,
  expect,
  test,
} from "https://deno.land/x/unitest@$VERSION/mod.ts";
test("should be any object", () => {
  expect({a: "b"}).toEqual(anyObject());
});

Parameters

optional
condition: (value: object) => boolean

Returns

AnyObject