From 0c8b2193b29dfdac6b08a799a781a32365d5e41e Mon Sep 17 00:00:00 2001 From: FredKSchott Date: Mon, 11 Apr 2022 01:24:06 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/core/build/static-build.ts | 9 +++++---- packages/astro/test/static-build.test.js | 6 ++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/packages/astro/src/core/build/static-build.ts b/packages/astro/src/core/build/static-build.ts index 5a49c5792..40107844d 100644 --- a/packages/astro/src/core/build/static-build.ts +++ b/packages/astro/src/core/build/static-build.ts @@ -257,10 +257,11 @@ async function copyFiles(fromFolder: URL, toFolder: URL) { files.map(async (filename) => { const from = new URL(filename, fromFolder); const to = new URL(filename, toFolder); - const lastFolder = new URL('./', to) - return fs.promises.mkdir(lastFolder, {recursive: true}) - .then(()=>fs.promises.copyFile(from, to) ) - }) + const lastFolder = new URL('./', to); + return fs.promises + .mkdir(lastFolder, { recursive: true }) + .then(() => fs.promises.copyFile(from, to)); + }) ); } diff --git a/packages/astro/test/static-build.test.js b/packages/astro/test/static-build.test.js index 994658787..f4cd4b276 100644 --- a/packages/astro/test/static-build.test.js +++ b/packages/astro/test/static-build.test.js @@ -170,13 +170,11 @@ describe('Static build', () => { }); describe('Static build SSR', () => { - it('Copies public files', async () => { const fixture = await loadFixture({ root: './fixtures/static build SSR/', }); - await fixture.build() - const asset = await fixture.readFile('/client/nested/asset2.txt'); + await fixture.build(); + const asset = await fixture.readFile('/client/nested/asset2.txt'); }); - });