Notes/spec/support/utils.spec.ts

15 lines
290 B
TypeScript
Raw Permalink Normal View History

2025-01-13 00:32:58 +01:00
import { describe, it, expect } from "vitest";
import { trimIndentation } from "./utils.js";
describe("Utils", () => {
it("trims indentation", () => {
expect(trimIndentation`\
Hello
world
2025-01-09 18:07:02 +02:00
123`).toBe(`\
Hello
world
123`);
});
2024-12-22 15:45:54 +02:00
});