diff options
author | 2023-07-17 20:32:14 +0000 | |
---|---|---|
committer | 2023-07-17 20:32:14 +0000 | |
commit | b0d3652c59b34c2c1cd51970bcfa96dcf0b1b30a (patch) | |
tree | a504fb84a2ff47b7ef97ba24d27f278205fe6ddd | |
parent | dd931a78065a9f46ade0588b35dcc2ea7dbed974 (diff) | |
download | astro-b0d3652c59b34c2c1cd51970bcfa96dcf0b1b30a.tar.gz astro-b0d3652c59b34c2c1cd51970bcfa96dcf0b1b30a.tar.zst astro-b0d3652c59b34c2c1cd51970bcfa96dcf0b1b30a.zip |
[ci] format
-rw-r--r-- | packages/integrations/sitemap/test/routes.test.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/integrations/sitemap/test/routes.test.js b/packages/integrations/sitemap/test/routes.test.js index 4b96e5987..909580dd9 100644 --- a/packages/integrations/sitemap/test/routes.test.js +++ b/packages/integrations/sitemap/test/routes.test.js @@ -4,23 +4,23 @@ import { expect } from 'chai'; describe('routes', () => { /** @type {import('./test-utils.js').Fixture} */ let fixture; - /** @type {string[]} */ - let urls; + /** @type {string[]} */ + let urls; before(async () => { fixture = await loadFixture({ root: './fixtures/static/', }); await fixture.build(); - const data = await readXML(fixture.readFile('/sitemap-0.xml')); - urls = data.urlset.url.map(url => url.loc[0]); + const data = await readXML(fixture.readFile('/sitemap-0.xml')); + urls = data.urlset.url.map((url) => url.loc[0]); }); it('does not include endpoints', async () => { expect(urls).to.not.include('http://example.com/endpoint.json'); }); - it('does not include redirects', async () => { + it('does not include redirects', async () => { expect(urls).to.not.include('http://example.com/redirect'); }); }); |