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.

447 B
Raw Blame
import { describe, expect, it } from "vite-plus/test";
import { stripLineBreaks } from "./strip-line-breaks";

describe("stripLineBreaks", () => {
  it("joins lines with a single space", () => {
    expect(stripLineBreaks("Fix the\n  drawer\r\non phones")).toBe(
      "Fix the drawer on phones",
    );
  });

  it("leaves single-line titles untouched", () => {
    expect(stripLineBreaks("  Keep  spacing ")).toBe("  Keep  spacing ");
  });
});