diff options
Diffstat (limited to 'packages/integrations/deno/test')
-rw-r--r-- | packages/integrations/deno/test/basics.test.js | 8 | ||||
-rw-r--r-- | packages/integrations/deno/test/helpers.js | 2 |
2 files changed, 5 insertions, 5 deletions
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(); |