chore(test): add template literal for trimming indentation

This commit is contained in:
Elian Doran
2024-12-17 23:08:17 +02:00
parent 7bae719309
commit ba95caaf6d
2 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
import { trimIndentation } from "./utils.js";
describe("Utils", () => {
it("trims indentation", () => {
expect(trimIndentation`\
Hello
world
123`
).toBe(`\
Hello
world
123`);
});
});