[ci] format

This commit is contained in:
matthewp 2022-04-15 21:02:19 +00:00 committed by github-actions[bot]
parent e5383cd357
commit 089ce68f08
3 changed files with 6 additions and 6 deletions

View file

@ -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);
}

View file

@ -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();
});
}
})
},
});

View file

@ -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();