From 22c944712c38c029507fca8b7dd3d16277b8d8c8 Mon Sep 17 00:00:00 2001 From: bluwy Date: Thu, 10 Aug 2023 14:16:37 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/content/runtime.ts | 2 +- packages/astro/test/content-collections-render.test.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/astro/src/content/runtime.ts b/packages/astro/src/content/runtime.ts index bb89c60997..7b8654ee70 100644 --- a/packages/astro/src/content/runtime.ts +++ b/packages/astro/src/content/runtime.ts @@ -70,7 +70,7 @@ export function createGetCollection({ // prevents stale cache in development if (import.meta.env.PROD && cacheEntriesByCollection.has(collection)) { // Always return a new instance so consumers can safely mutate it - entries = [...cacheEntriesByCollection.get(collection)!] + entries = [...cacheEntriesByCollection.get(collection)!]; } else { entries = await Promise.all( lazyImports.map(async (lazyImport) => { diff --git a/packages/astro/test/content-collections-render.test.js b/packages/astro/test/content-collections-render.test.js index 8bcc35817e..f6a9c3c72d 100644 --- a/packages/astro/test/content-collections-render.test.js +++ b/packages/astro/test/content-collections-render.test.js @@ -178,12 +178,12 @@ describe('Content Collections - render()', () => { let $ = cheerio.load(html); expect($('li').first().text()).to.equal('With Layout Prop'); - request = new Request('http://example.com/'); - response = await app.render(request); - html = await response.text(); - $ = cheerio.load(html); + request = new Request('http://example.com/'); + response = await app.render(request); + html = await response.text(); + $ = cheerio.load(html); expect($('li').first().text()).to.equal('Hello world'); - }) + }); }); describe('Dev - SSG', () => {