kaneo (minimalist kanban) fork to experiment adding a tangled integration
github.com/usekaneo/kaneo
1import { describe, expect, it } from "vitest";
2import toNormalCase from "../../../apps/api/src/utils/to-normal-case";
3
4describe("toNormalCase", () => {
5 it("normalizes kebab and snake case", () => {
6 expect(toNormalCase("in-progress")).toBe("In Progress");
7 expect(toNormalCase("custom_oauth_status")).toBe("Custom Oauth Status");
8 });
9
10 it("returns falsy input as-is", () => {
11 expect(toNormalCase(undefined)).toBeUndefined();
12 expect(toNormalCase("")).toBe("");
13 });
14});