import { isMockObject } from "https://deno.land/x/unitest@v1.0.0-beta.82/mock/fn.ts";
Whatever argument is MockObject
or not.
import {
expect,
fn,
isMockObject,
test,
} from "https://deno.land/x/unitest@$VERSION/mod.ts";
test("should be mock object", () => {
const mockObject = fn();
expect(isMockObject(mockObject)).toBeTruthy();
expect(isMockObject({})).toBeFalsy();
});
Returns
value is MockObject<A, R>