chore: add missing await in tests (#15301)

pull/15319/head
Ben McCann 7 months ago committed by GitHub
parent 75f81991c2
commit 87d7cc7d89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -25,7 +25,7 @@ const { test, run } = suite<PreprocessTest>(async (config, cwd) => {
fs.writeFileSync(`${cwd}/_actual.html.map`, JSON.stringify(result.map, null, 2)); fs.writeFileSync(`${cwd}/_actual.html.map`, JSON.stringify(result.map, null, 2));
} }
expect(result.code).toMatchFileSnapshot(`${cwd}/output.svelte`); await expect(result.code).toMatchFileSnapshot(`${cwd}/output.svelte`);
expect(result.dependencies).toEqual(config.dependencies || []); expect(result.dependencies).toEqual(config.dependencies || []);

Loading…
Cancel
Save