fix nyaize test
This commit is contained in:
parent
02d36c4518
commit
2ecaa57cd5
|
@ -3,15 +3,14 @@
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { describe, test, assert, afterEach } from 'vitest';
|
import { nyaize } from '../src/nyaize.js';
|
||||||
import { nyaize } from '@/scripts/nyaize.js';
|
|
||||||
|
|
||||||
function runTests(cases) {
|
function runTests(cases) {
|
||||||
for (const c of cases) {
|
for (const c of cases) {
|
||||||
const [input,expected] = c;
|
const [input,expected] = c;
|
||||||
const got = nyaize(input);
|
const got = nyaize(input);
|
||||||
assert.strictEqual(got, expected);
|
expect(got).toEqual(expected);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
describe('nyaize', () => {
|
describe('nyaize', () => {
|
Loading…
Reference in New Issue