updates
This commit is contained in:
14
resources/js/tests/string.test.ts
Normal file
14
resources/js/tests/string.test.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { expect, describe, it } from "vitest";
|
||||
import { toTitleCase } from "../helpers/string";
|
||||
|
||||
describe("toTitleCase()", () => {
|
||||
it("should return a converted title case string", () => {
|
||||
const result = toTitleCase("titlecase");
|
||||
expect(result).toEqual("Titlecase");
|
||||
});
|
||||
|
||||
it("should return a converted title case string and spaces", () => {
|
||||
const result = toTitleCase("titlecase_and_more");
|
||||
expect(result).toEqual("Titlecase and more");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user