0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00

chore: migrate static-build-page-url-format.test.js to node:test (#10049)

This commit is contained in:
Ming-jun Lu 2024-02-08 18:17:10 +08:00 committed by GitHub
parent 322b2b6c72
commit 2bff75282a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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');
});
});