[ci] yarn format

This commit is contained in:
matthewp 2021-06-14 20:11:42 +00:00 committed by GitHub Actions
parent 016833a3bc
commit ddd86f8ab2
2 changed files with 5 additions and 7 deletions

View file

@ -328,7 +328,7 @@ async function createSnowpack(astroConfig: AstroConfig, options: CreateSnowpackO
hmrPort?: number; hmrPort?: number;
} = { } = {
astroConfig, astroConfig,
resolvePackageUrl resolvePackageUrl,
}; };
const mountOptions = { const mountOptions = {

View file

@ -16,7 +16,7 @@ HMR('Honors the user provided port', async ({ runtime }) => {
if (result.error) throw new Error(result.error); if (result.error) throw new Error(result.error);
const html = result.contents; const html = result.contents;
assert.ok(/window\.HMR_WEBSOCKET_URL = window\.HMR_WEBSOCKET_URL || 'ws:\/\/localhost:5555'/.test(html), 'Uses the user\'s websocket port'); assert.ok(/window\.HMR_WEBSOCKET_URL = window\.HMR_WEBSOCKET_URL || 'ws:\/\/localhost:5555'/.test(html), "Uses the user's websocket port");
}); });
HMR('Does not override script added by the user', async ({ runtime }) => { HMR('Does not override script added by the user', async ({ runtime }) => {
@ -25,10 +25,8 @@ HMR('Does not override script added by the user', async ({ runtime }) => {
const html = result.contents; const html = result.contents;
assert.ok(!/window\.HMR_WEBSOCKET_URL = 'ws:\/\/localhost:3333'/.test(html), assert.ok(!/window\.HMR_WEBSOCKET_URL = 'ws:\/\/localhost:3333'/.test(html), 'Users script included');
'Users script included'); assert.ok(/window\.HMR_WEBSOCKET_URL = window\.HMR_WEBSOCKET_URL || 'ws:\/\/localhost:5555'/.test(html), 'Our script defers to the port already being set');
assert.ok(/window\.HMR_WEBSOCKET_URL = window\.HMR_WEBSOCKET_URL || 'ws:\/\/localhost:5555'/.test(html),
'Our script defers to the port already being set');
}); });
HMR.run(); HMR.run();