[ci] format
This commit is contained in:
parent
e522a5eb41
commit
defab70cb2
2 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,6 @@
|
|||
import type { MarkdownHeading } from '@astrojs/markdown-remark';
|
||||
import { ZodIssueCode, string as zodString } from 'zod';
|
||||
import type { AstroIntegration } from '../@types/astro.js';
|
||||
import { AstroError, AstroErrorData } from '../core/errors/index.js';
|
||||
import { prependForwardSlash } from '../core/path.js';
|
||||
import {
|
||||
|
@ -13,7 +14,6 @@ import {
|
|||
type AstroComponentFactory,
|
||||
} from '../runtime/server/index.js';
|
||||
import type { ContentLookupMap } from './utils.js';
|
||||
import type { AstroIntegration } from '../@types/astro.js';
|
||||
|
||||
type LazyImport = () => Promise<any>;
|
||||
type GlobResult = Record<string, LazyImport>;
|
||||
|
@ -56,7 +56,7 @@ export function createGetCollection({
|
|||
} else if (collection in dataCollectionToEntryMap) {
|
||||
type = 'data';
|
||||
} else {
|
||||
return warnOfEmptyCollection(collection)
|
||||
return warnOfEmptyCollection(collection);
|
||||
}
|
||||
const lazyImports = Object.values(
|
||||
type === 'content'
|
||||
|
|
|
@ -247,7 +247,7 @@ describe('Content Collections', () => {
|
|||
describe('With empty collections directory', () => {
|
||||
it('Handles the empty directory correclty', async () => {
|
||||
const fixture = await loadFixture({
|
||||
root: './fixtures/content-collections-empty-dir/'
|
||||
root: './fixtures/content-collections-empty-dir/',
|
||||
});
|
||||
let error;
|
||||
try {
|
||||
|
@ -257,8 +257,8 @@ describe('Content Collections', () => {
|
|||
}
|
||||
expect(error).to.be.undefined;
|
||||
// TODO: try to render a page
|
||||
})
|
||||
})
|
||||
});
|
||||
});
|
||||
|
||||
describe('SSR integration', () => {
|
||||
let app;
|
||||
|
|
Loading…
Reference in a new issue