mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
[ci] format
This commit is contained in:
parent
c23377caaf
commit
22c944712c
2 changed files with 6 additions and 6 deletions
|
@ -70,7 +70,7 @@ export function createGetCollection({
|
||||||
// prevents stale cache in development
|
// prevents stale cache in development
|
||||||
if (import.meta.env.PROD && cacheEntriesByCollection.has(collection)) {
|
if (import.meta.env.PROD && cacheEntriesByCollection.has(collection)) {
|
||||||
// Always return a new instance so consumers can safely mutate it
|
// Always return a new instance so consumers can safely mutate it
|
||||||
entries = [...cacheEntriesByCollection.get(collection)!]
|
entries = [...cacheEntriesByCollection.get(collection)!];
|
||||||
} else {
|
} else {
|
||||||
entries = await Promise.all(
|
entries = await Promise.all(
|
||||||
lazyImports.map(async (lazyImport) => {
|
lazyImports.map(async (lazyImport) => {
|
||||||
|
|
|
@ -183,7 +183,7 @@ describe('Content Collections - render()', () => {
|
||||||
html = await response.text();
|
html = await response.text();
|
||||||
$ = cheerio.load(html);
|
$ = cheerio.load(html);
|
||||||
expect($('li').first().text()).to.equal('Hello world');
|
expect($('li').first().text()).to.equal('Hello world');
|
||||||
})
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('Dev - SSG', () => {
|
describe('Dev - SSG', () => {
|
||||||
|
|
Loading…
Reference in a new issue