[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;
|
assets[fileURLToPath(stylesheetFile)] = content;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
allPages[route.component] = {
|
allPages[route.component] = {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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');
|
||||||
|
|
Loading…
Reference in a new issue