From 089ce68f081787c33bf784f8148eb5c8af8af5da Mon Sep 17 00:00:00 2001 From: matthewp Date: Fri, 15 Apr 2022 21:02:19 +0000 Subject: [PATCH] [ci] format --- packages/integrations/deno/src/server.ts | 2 +- packages/integrations/deno/test/basics.test.js | 8 ++++---- packages/integrations/deno/test/helpers.js | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/integrations/deno/src/server.ts b/packages/integrations/deno/src/server.ts index 1194cda23..157d06751 100644 --- a/packages/integrations/deno/src/server.ts +++ b/packages/integrations/deno/src/server.ts @@ -23,7 +23,7 @@ export function start(manifest: SSRManifest, options: Options) { const clientRoot = new URL('../client/', import.meta.url); const app = new App(manifest); const handler = async (request: Request) => { - if(app.match(request)) { + if (app.match(request)) { return await app.render(request); } diff --git a/packages/integrations/deno/test/basics.test.js b/packages/integrations/deno/test/basics.test.js index 6efb3b0d5..115883466 100644 --- a/packages/integrations/deno/test/basics.test.js +++ b/packages/integrations/deno/test/basics.test.js @@ -27,12 +27,12 @@ Deno.test({ const doc = new DOMParser().parseFromString(html, `text/html`); const link = doc.querySelector('link'); const href = link.getAttribute('href'); - + resp = await fetch(new URL(href, 'http://127.0.0.1:8085/')); assertEquals(resp.status, 200); const ct = resp.headers.get('content-type'); assertEquals(ct, 'text/css'); - await resp.body.cancel() + await resp.body.cancel(); }); - } -}) + }, +}); diff --git a/packages/integrations/deno/test/helpers.js b/packages/integrations/deno/test/helpers.js index 210877f1d..3a3fb0c17 100644 --- a/packages/integrations/deno/test/helpers.js +++ b/packages/integrations/deno/test/helpers.js @@ -14,7 +14,7 @@ export async function runBuildAndStartApp(fixturePath, cb) { const url = new URL(fixturePath, dir); const close = await runBuild(fixturePath); const mod = await import(new URL('./dist/server/entry.mjs', url)); - if(!mod.running()) { + if (!mod.running()) { mod.start(); } await cb();