[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; assets[fileURLToPath(stylesheetFile)] = content;
} }
} }
} }
allPages[route.component] = { allPages[route.component] = {

View file

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

View file

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