mirror of
https://github.com/zadam/trilium.git
synced 2025-10-28 08:46:43 +01:00
chore(test): add template literal for trimming indentation
This commit is contained in:
14
spec/support/utils.spec.ts
Normal file
14
spec/support/utils.spec.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { trimIndentation } from "./utils.js";
|
||||
|
||||
describe("Utils", () => {
|
||||
it("trims indentation", () => {
|
||||
expect(trimIndentation`\
|
||||
Hello
|
||||
world
|
||||
123`
|
||||
).toBe(`\
|
||||
Hello
|
||||
world
|
||||
123`);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user