From 2bff75282a389d4370e6add26f00af005b377c52 Mon Sep 17 00:00:00 2001 From: Ming-jun Lu <40516784+mingjunlu@users.noreply.github.com> Date: Thu, 8 Feb 2024 18:17:10 +0800 Subject: [PATCH] chore: migrate `static-build-page-url-format.test.js` to `node:test` (#10049) --- ...at.test.js => static-build-page-url-format.nodetest.js} | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) rename packages/astro/test/{static-build-page-url-format.test.js => static-build-page-url-format.nodetest.js} (73%) diff --git a/packages/astro/test/static-build-page-url-format.test.js b/packages/astro/test/static-build-page-url-format.nodetest.js similarity index 73% rename from packages/astro/test/static-build-page-url-format.test.js rename to packages/astro/test/static-build-page-url-format.nodetest.js index 2f8660b63c..2755b3ffb3 100644 --- a/packages/astro/test/static-build-page-url-format.test.js +++ b/packages/astro/test/static-build-page-url-format.nodetest.js @@ -1,4 +1,5 @@ -import { expect } from 'chai'; +import assert from 'node:assert/strict'; +import { before, describe, it } from 'node:test'; import { loadFixture } from './test-utils.js'; describe("Static build - format: 'file'", () => { @@ -13,11 +14,11 @@ describe("Static build - format: 'file'", () => { it('Builds pages in root', async () => { const html = await fixture.readFile('/one.html'); - expect(html).to.be.a('string'); + assert.equal(typeof html, 'string'); }); it('Builds pages in subfolders', async () => { const html = await fixture.readFile('/sub/page.html'); - expect(html).to.be.a('string'); + assert.equal(typeof html, 'string'); }); });