diff --git a/tests/issues/issue-468/formatted.svelte b/tests/issues/issue-468/formatted.svelte new file mode 100644 index 00000000..f11db32a --- /dev/null +++ b/tests/issues/issue-468/formatted.svelte @@ -0,0 +1,3 @@ + diff --git a/tests/issues/issue-468/issue-468.test.ts b/tests/issues/issue-468/issue-468.test.ts new file mode 100644 index 00000000..04e0f694 --- /dev/null +++ b/tests/issues/issue-468/issue-468.test.ts @@ -0,0 +1,15 @@ +import { compareFiles } from 'tests/common'; +import { describe, expect, it } from 'vitest'; + +describe('Issues', () => { + it('should end with newline in svelte', async () => { + const { actual, expected } = await compareFiles(import.meta.url, { + source: 'unformatted.svelte', + target: 'formatted.svelte', + formatOptions: { + pugFramework: 'svelte', + }, + }); + expect(actual).toBe(expected); + }); +}); diff --git a/tests/issues/issue-468/unformatted.svelte b/tests/issues/issue-468/unformatted.svelte new file mode 100644 index 00000000..f11db32a --- /dev/null +++ b/tests/issues/issue-468/unformatted.svelte @@ -0,0 +1,3 @@ +