summaryrefslogtreecommitdiff
path: root/packages/integrations/sitemap/test/routes.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/integrations/sitemap/test/routes.test.js')
-rw-r--r--packages/integrations/sitemap/test/routes.test.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/integrations/sitemap/test/routes.test.js b/packages/integrations/sitemap/test/routes.test.js
index b7f39e404..909580dd9 100644
--- a/packages/integrations/sitemap/test/routes.test.js
+++ b/packages/integrations/sitemap/test/routes.test.js
@@ -1,6 +1,5 @@
import { loadFixture, readXML } from './test-utils.js';
-import * as assert from 'node:assert/strict';
-import { describe, it, before } from 'node:test';
+import { expect } from 'chai';
describe('routes', () => {
/** @type {import('./test-utils.js').Fixture} */
@@ -18,10 +17,10 @@ describe('routes', () => {
});
it('does not include endpoints', async () => {
- assert.equal(urls.indexOf('http://example.com/endpoint.json'), -1);
+ expect(urls).to.not.include('http://example.com/endpoint.json');
});
it('does not include redirects', async () => {
- assert.equal(urls.indexOf('http://example.com/endpoint.json'), -1);
+ expect(urls).to.not.include('http://example.com/redirect');
});
});