import { describe, test, expect } from 'vitest'; import loader from './index.js'; describe('html-preprocessor', () => { test('inline', async () => { const input = ` --- title: Hello, world! ---
fn main() {
  println!("Hello, world!");
}
`.trim(); const expected = ` --- title: Hello, world! ---
fn main() {
  println!("Hello, world!");
}
`.trim(); expect(loader(input)).toBe(expected.trim()); }); });