From ddd86f8ab2a1faee0228d511bbafc6362ad8b216 Mon Sep 17 00:00:00 2001 From: matthewp Date: Mon, 14 Jun 2021 20:11:42 +0000 Subject: [PATCH] [ci] yarn format --- packages/astro/src/runtime.ts | 2 +- packages/astro/test/astro-hmr.test.js | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/astro/src/runtime.ts b/packages/astro/src/runtime.ts index a761739b1..a45b3fb82 100644 --- a/packages/astro/src/runtime.ts +++ b/packages/astro/src/runtime.ts @@ -328,7 +328,7 @@ async function createSnowpack(astroConfig: AstroConfig, options: CreateSnowpackO hmrPort?: number; } = { astroConfig, - resolvePackageUrl + resolvePackageUrl, }; const mountOptions = { diff --git a/packages/astro/test/astro-hmr.test.js b/packages/astro/test/astro-hmr.test.js index 9b8fa6588..ddee2fbf1 100644 --- a/packages/astro/test/astro-hmr.test.js +++ b/packages/astro/test/astro-hmr.test.js @@ -16,7 +16,7 @@ HMR('Honors the user provided port', async ({ runtime }) => { if (result.error) throw new Error(result.error); 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 }) => { @@ -25,10 +25,8 @@ HMR('Does not override script added by the user', async ({ runtime }) => { const html = result.contents; - assert.ok(!/window\.HMR_WEBSOCKET_URL = 'ws:\/\/localhost:3333'/.test(html), - '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 = 'ws:\/\/localhost:3333'/.test(html), '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'); }); -HMR.run(); \ No newline at end of file +HMR.run();