Skip to main content
Module

x/unitest/mod.ts>anyString

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

matches any string or String

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

test("should be any string", () => {
  expect("hello").toEqual(anyString());
});

Parameters

optional
condition: (value: string) => boolean

Returns

AnyString