[ci] yarn format

This commit is contained in:
natemoo-re 2022-01-21 22:40:03 +00:00 committed by GitHub Actions
parent ed0b46f96f
commit 72ac198eb0
3 changed files with 4 additions and 4 deletions

View file

@ -100,7 +100,7 @@ export async function collectPagesData(opts: CollectPagesDataOptions): Promise<C
);
}
assets[fileURLToPath(stylesheetFile)] = content;
}
}
}
}
allPages[route.component] = {

View file

@ -16,9 +16,9 @@ export function canonicalURL(url: string, base?: string): URL {
}
/** Check if a URL is already valid */
export function isValidURL(url: string):boolean {
export function isValidURL(url: string): boolean {
try {
new URL(url)
new URL(url);
return true;
} catch (e) {}
return false;

View file

@ -33,7 +33,7 @@ describe('Sitemaps', () => {
);
});
});
describe('Sitemap Generation', () => {
it('Generates Sitemap correctly', async () => {
let sitemap = await fixture.readFile('/sitemap.xml');