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:
parent
322b2b6c72
commit
2bff75282a
1 changed files with 4 additions and 3 deletions
|
@ -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');
|
||||
});
|
||||
});
|
Loading…
Reference in a new issue