0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

[ci] format

This commit is contained in:
Arpan Patel 2024-11-21 09:32:06 +00:00 committed by astrobot-houston
parent a23985b021
commit e329657a00

View file

@ -87,13 +87,13 @@ describe('[DEV] i18n routing', () => {
const response = await fixture.fetch('/es/nonexistent-page'); const response = await fixture.fetch('/es/nonexistent-page');
assert.equal(response.status, 404); assert.equal(response.status, 404);
assert.equal((await response.text()).includes('Current Locale: es'), true); assert.equal((await response.text()).includes('Current Locale: es'), true);
}); });
it('should return the correct locale on 404 page for non existing english locale page', async () => { it('should return the correct locale on 404 page for non existing english locale page', async () => {
const response = await fixture.fetch('/en/nonexistent-page'); const response = await fixture.fetch('/en/nonexistent-page');
assert.equal(response.status, 404); assert.equal(response.status, 404);
assert.equal((await response.text()).includes('Current Locale: en'), true); assert.equal((await response.text()).includes('Current Locale: en'), true);
}); });
}); });
describe('i18n routing', () => { describe('i18n routing', () => {