[ci] yarn format
This commit is contained in:
parent
ed0b46f96f
commit
72ac198eb0
3 changed files with 4 additions and 4 deletions
|
@ -100,7 +100,7 @@ export async function collectPagesData(opts: CollectPagesDataOptions): Promise<C
|
|||
);
|
||||
}
|
||||
assets[fileURLToPath(stylesheetFile)] = content;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
allPages[route.component] = {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -33,7 +33,7 @@ describe('Sitemaps', () => {
|
|||
);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
describe('Sitemap Generation', () => {
|
||||
it('Generates Sitemap correctly', async () => {
|
||||
let sitemap = await fixture.readFile('/sitemap.xml');
|
||||
|
|
Loading…
Reference in a new issue