mirror of
https://github.com/withastro/astro.git
synced 2025-01-20 22:12:38 -05:00
[ci] format
This commit is contained in:
parent
37c75108e7
commit
bcd9202228
2 changed files with 6 additions and 3 deletions
|
@ -51,7 +51,7 @@ describe('Redirects', () => {
|
||||||
const config = await getConfig();
|
const config = await getConfig();
|
||||||
|
|
||||||
const staticRoute = config.routes.find((r) => r.src === '/Basic/http-2-0.html');
|
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.headers.Location, '/posts/http2');
|
||||||
assert.equal(staticRoute.status, 301);
|
assert.equal(staticRoute.status, 301);
|
||||||
});
|
});
|
||||||
|
@ -75,6 +75,9 @@ describe('Redirects', () => {
|
||||||
|
|
||||||
it('does not define trailingSlash redirect for root page', async () => {
|
it('does not define trailingSlash redirect for root page', async () => {
|
||||||
const config = await getConfig();
|
const config = await getConfig();
|
||||||
assert.equal(config.routes.find((r) => r.src === '/'), undefined);
|
assert.equal(
|
||||||
|
config.routes.find((r) => r.src === '/'),
|
||||||
|
undefined
|
||||||
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -20,7 +20,7 @@ describe('Vercel Speed Insights', () => {
|
||||||
|
|
||||||
const bundle = await fixture.readFile(`../.vercel/output/static/_astro/${page}`);
|
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/);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue