import { string } from "https://deno.land/x/unitest@v1.0.0-beta.82/modifier/string.ts";
Use .string
to convert any actual
to string
. Internally, the String
constructor is used.
import {
defineExpect,
string,
test,
toBe,
} from "https://deno.land/x/unitest@$VERSION/mod.ts";
const expect = defineExpect({
matcherMap: {
toBe,
},
modifierMap: {
string,
},
});
test("passes when stringified value to be", () => {
expect(null).string.toBe("null");
});
type
PreModifier<unknown, PreModifierResult<string>>