mirror of
https://github.com/withastro/astro.git
synced 2025-02-24 22:46:02 -05:00
chore: migrate static-build-dir.test.js
to node:test
(#10046)
This commit is contained in:
parent
0c246cc6dd
commit
40c95b4436
1 changed files with 5 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: dir takes the URL path to the output directory', () => {
|
||||
|
@ -27,9 +28,10 @@ describe('Static build: dir takes the URL path to the output directory', () => {
|
|||
});
|
||||
it('dir takes the URL path to the output directory', async () => {
|
||||
const removeTrailingSlash = (str) => str.replace(/\/$/, '');
|
||||
expect(removeTrailingSlash(checkDir.toString())).to.be.equal(
|
||||
assert.equal(
|
||||
removeTrailingSlash(checkDir.toString()),
|
||||
removeTrailingSlash(new URL('./fixtures/static-build-dir/dist', import.meta.url).toString())
|
||||
);
|
||||
expect(checkDir.toString()).to.be.equal(checkGeneratedDir.toString());
|
||||
assert.equal(checkDir.toString(), checkGeneratedDir.toString());
|
||||
});
|
||||
});
|
Loading…
Add table
Reference in a new issue