0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

[ci] format

This commit is contained in:
ematipico 2023-09-21 08:37:23 +00:00 committed by astrobot-houston
parent e522a5eb41
commit defab70cb2
2 changed files with 5 additions and 5 deletions

View file

@ -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'

View file

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