diff options
author | 2024-01-31 08:32:27 +0000 | |
---|---|---|
committer | 2024-01-31 08:32:27 +0000 | |
commit | 6dbafb8f5f34d54124a564f70b1cc3d152855bf2 (patch) | |
tree | 5aebf81daa1f0d0eb2ab3a4226c10f8af940c843 /packages/integrations/sitemap/test/trailing-slash.test.js | |
parent | 82de54979e90f7f46b832cf5ae88fcc5fed43568 (diff) | |
download | astro-6dbafb8f5f34d54124a564f70b1cc3d152855bf2.tar.gz astro-6dbafb8f5f34d54124a564f70b1cc3d152855bf2.tar.zst astro-6dbafb8f5f34d54124a564f70b1cc3d152855bf2.zip |
[ci] format
Diffstat (limited to 'packages/integrations/sitemap/test/trailing-slash.test.js')
-rw-r--r-- | packages/integrations/sitemap/test/trailing-slash.test.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/integrations/sitemap/test/trailing-slash.test.js b/packages/integrations/sitemap/test/trailing-slash.test.js index 3b3cb7762..d51ed2020 100644 --- a/packages/integrations/sitemap/test/trailing-slash.test.js +++ b/packages/integrations/sitemap/test/trailing-slash.test.js @@ -22,7 +22,7 @@ describe('Trailing slash', () => { it('URLs end with trailing slash', async () => { const data = await readXML(fixture.readFile('/sitemap-0.xml')); const urls = data.urlset.url; - assert.equal(urls[0].loc[0],'http://example.com/one/'); + assert.equal(urls[0].loc[0], 'http://example.com/one/'); }); }); @@ -41,7 +41,7 @@ describe('Trailing slash', () => { it('URLs do not end with trailing slash', async () => { const data = await readXML(fixture.readFile('/sitemap-0.xml')); const urls = data.urlset.url; - assert.equal(urls[0].loc[0],'http://example.com/one'); + assert.equal(urls[0].loc[0], 'http://example.com/one'); }); }); }); @@ -58,7 +58,7 @@ describe('Trailing slash', () => { it('URLs do no end with trailing slash', async () => { const data = await readXML(fixture.readFile('/sitemap-0.xml')); const urls = data.urlset.url; - assert.equal(urls[0].loc[0],'http://example.com/one'); + assert.equal(urls[0].loc[0], 'http://example.com/one'); }); describe('with base path', () => { before(async () => { @@ -73,7 +73,7 @@ describe('Trailing slash', () => { it('URLs do not end with trailing slash', async () => { const data = await readXML(fixture.readFile('/sitemap-0.xml')); const urls = data.urlset.url; - assert.equal(urls[0].loc[0],'http://example.com/base/one'); + assert.equal(urls[0].loc[0], 'http://example.com/base/one'); }); }); }); @@ -90,7 +90,7 @@ describe('Trailing slash', () => { it('URLs end with trailing slash', async () => { const data = await readXML(fixture.readFile('/sitemap-0.xml')); const urls = data.urlset.url; - assert.equal(urls[0].loc[0],'http://example.com/one/'); + assert.equal(urls[0].loc[0], 'http://example.com/one/'); }); describe('with base path', () => { before(async () => { @@ -105,7 +105,7 @@ describe('Trailing slash', () => { it('URLs end with trailing slash', async () => { const data = await readXML(fixture.readFile('/sitemap-0.xml')); const urls = data.urlset.url; - assert.equal(urls[0].loc[0],'http://example.com/base/one/'); + assert.equal(urls[0].loc[0], 'http://example.com/base/one/'); }); }); }); |