aboutsummaryrefslogtreecommitdiff
path: root/packages/integrations/node/test/encoded.test.js
diff options
context:
space:
mode:
authorGravatar Emanuele Stoppa <my.burning@gmail.com> 2024-01-25 16:17:31 +0000
committerGravatar GitHub <noreply@github.com> 2024-01-25 16:17:31 +0000
commitfc21a3c306f552a3048b0a0899b5f21c1c9269c1 (patch)
treeba619951f09147eb2893ec5b5f113014ee3f746e /packages/integrations/node/test/encoded.test.js
parentd688954c5adba75b0d676694fbf5fb0da1c0af13 (diff)
downloadastro-fc21a3c306f552a3048b0a0899b5f21c1c9269c1.tar.gz
astro-fc21a3c306f552a3048b0a0899b5f21c1c9269c1.tar.zst
astro-fc21a3c306f552a3048b0a0899b5f21c1c9269c1.zip
chore(@astrojs/node): use Node.js for testing (#9758)
* chore(@astrojs/node): use Node.js for testing * revert file * address feedback * feedback * Run tests in a single process (#9823) * Run tests in a single process * Make test less flaky * chore: remove module --------- Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Diffstat (limited to 'packages/integrations/node/test/encoded.test.js')
-rw-r--r--packages/integrations/node/test/encoded.test.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/integrations/node/test/encoded.test.js b/packages/integrations/node/test/encoded.test.js
index bbd264777..2739fcfb7 100644
--- a/packages/integrations/node/test/encoded.test.js
+++ b/packages/integrations/node/test/encoded.test.js
@@ -1,6 +1,7 @@
+import * as assert from 'node:assert/strict';
+import { describe, it, before, after } from 'node:test';
import nodejs from '../dist/index.js';
import { loadFixture, createRequestAndResponse } from './test-utils.js';
-import { expect } from 'chai';
describe('Encoded Pathname', () => {
/** @type {import('./test-utils').Fixture} */
@@ -25,7 +26,7 @@ describe('Encoded Pathname', () => {
req.send();
const html = await text();
- expect(html).to.include('什么</h1>');
+ assert.equal(html.includes('什么</h1>'), true);
});
it('Can get a Markdown file', async () => {
@@ -39,6 +40,6 @@ describe('Encoded Pathname', () => {
req.send();
const html = await text();
- expect(html).to.include('什么</h1>');
+ assert.equal(html.includes('什么</h1>'), true);
});
});