Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

497 B
Raw Blame
import { describe, expect, it } from "vite-plus/test";
import toNormalCase from "../../../apps/api/src/utils/to-normal-case";

describe("toNormalCase", () => {
  it("normalizes kebab and snake case", () => {
    expect(toNormalCase("in-progress")).toBe("In Progress");
    expect(toNormalCase("custom_oauth_status")).toBe("Custom Oauth Status");
  });

  it("returns falsy input as-is", () => {
    expect(toNormalCase(undefined)).toBeUndefined();
    expect(toNormalCase("")).toBe("");
  });
});