diff --git a/packages/astro/test/astro-hmr.test.js b/packages/astro/test/astro-hmr.test.js index 1189c1f9b..330ed1af8 100644 --- a/packages/astro/test/astro-hmr.test.js +++ b/packages/astro/test/astro-hmr.test.js @@ -39,7 +39,7 @@ HMR('Adds script to static pages too', async ({ runtime }) => { assert.ok(/window\.HMR_WEBSOCKET_PORT/.test(html), 'websocket port added'); }); -HMR('Adds script to pages even if there aren\'t any elements in the template', async ({ runtime }) => { +HMR("Adds script to pages even if there aren't any elements in the template", async ({ runtime }) => { const result = await runtime.load('/no-elements'); if (result.error) throw new Error(result.error); diff --git a/packages/astro/test/no-head-el.test.js b/packages/astro/test/no-head-el.test.js index 749acd975..4e372288f 100644 --- a/packages/astro/test/no-head-el.test.js +++ b/packages/astro/test/no-head-el.test.js @@ -31,7 +31,7 @@ NoHeadEl('Injects HMR script even when there are no elements on the page', async const html = result.contents; const $ = doc(html); - + assert.equal($('script[src="/_snowpack/hmr-client.js"]').length, 1, 'Only the hmr client for the page'); });