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