[ci] format

This commit is contained in:
FredKSchott 2022-04-11 01:24:06 +00:00 committed by GitHub Actions
parent 7b0fbd731e
commit 0c8b2193b2
2 changed files with 7 additions and 8 deletions

View file

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

View file

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