0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-06 22:10:10 -05:00

[ci] format

This commit is contained in:
Ming-jun Lu 2024-02-13 13:24:10 +00:00 committed by astrobot-houston
parent 37c75108e7
commit bcd9202228
2 changed files with 6 additions and 3 deletions

View file

@ -51,7 +51,7 @@ describe('Redirects', () => {
const config = await getConfig();
const staticRoute = config.routes.find((r) => r.src === '/Basic/http-2-0.html');
assert.notEqual(staticRoute, undefined)
assert.notEqual(staticRoute, undefined);
assert.equal(staticRoute.headers.Location, '/posts/http2');
assert.equal(staticRoute.status, 301);
});
@ -75,6 +75,9 @@ describe('Redirects', () => {
it('does not define trailingSlash redirect for root page', async () => {
const config = await getConfig();
assert.equal(config.routes.find((r) => r.src === '/'), undefined);
assert.equal(
config.routes.find((r) => r.src === '/'),
undefined
);
});
});

View file

@ -20,7 +20,7 @@ describe('Vercel Speed Insights', () => {
const bundle = await fixture.readFile(`../.vercel/output/static/_astro/${page}`);
assert.match(bundle, /https:\/\/vitals.vercel-analytics.com\/v1\/vitals/)
assert.match(bundle, /https:\/\/vitals.vercel-analytics.com\/v1\/vitals/);
});
});