[ci] format

This commit is contained in:
bluwy 2023-08-10 14:16:37 +00:00 committed by astrobot-houston
parent c23377caaf
commit 22c944712c
2 changed files with 6 additions and 6 deletions

View file

@ -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) => {

View file

@ -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', () => {