[ci] yarn format
This commit is contained in:
parent
d93f768c8c
commit
924369b502
2 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ HMR('Adds script to static pages too', async ({ runtime }) => {
|
||||||
assert.ok(/window\.HMR_WEBSOCKET_PORT/.test(html), 'websocket port added');
|
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');
|
const result = await runtime.load('/no-elements');
|
||||||
if (result.error) throw new Error(result.error);
|
if (result.error) throw new Error(result.error);
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ NoHeadEl('Injects HMR script even when there are no elements on the page', async
|
||||||
|
|
||||||
const html = result.contents;
|
const html = result.contents;
|
||||||
const $ = doc(html);
|
const $ = doc(html);
|
||||||
|
|
||||||
assert.equal($('script[src="/_snowpack/hmr-client.js"]').length, 1, 'Only the hmr client for the page');
|
assert.equal($('script[src="/_snowpack/hmr-client.js"]').length, 1, 'Only the hmr client for the page');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue