import { upperCase } from "https://deno.land/x/unitest@v1.0.0-beta.82/mod.ts";
Use .upperCase
to convert string
actual to lower case.
import {
defineExpect,
test,
toBe,
upperCase,
} from "https://deno.land/x/unitest@$VERSION/mod.ts";
const expect = defineExpect({
matcherMap: {
toBe,
},
modifierMap: {
upperCase,
},
});
test("passes when upper cased value to be", () => {
expect("").upperCase.toBe("");
expect("Test").upperCase.toBe("TEST");
});
type
PreModifier<string, PreModifierResult<string>>