mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 15:11:31 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			290 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			290 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import { describe, it, expect } from "vitest";
 | 
						|
import { trimIndentation } from "./utils.js";
 | 
						|
 | 
						|
describe("Utils", () => {
 | 
						|
    it("trims indentation", () => {
 | 
						|
        expect(trimIndentation`\
 | 
						|
            Hello
 | 
						|
                world
 | 
						|
            123`).toBe(`\
 | 
						|
Hello
 | 
						|
    world
 | 
						|
123`);
 | 
						|
    });
 | 
						|
});
 |