Skip to content
Snippets Groups Projects
Commit 2ecaa57c authored by dakkar's avatar dakkar
Browse files

fix nyaize test

parent 02d36c45
No related branches found
No related tags found
No related merge requests found
......@@ -3,15 +3,14 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { describe, test, assert, afterEach } from 'vitest';
import { nyaize } from '@/scripts/nyaize.js';
import { nyaize } from '../src/nyaize.js';
function runTests(cases) {
for (const c of cases) {
const [input,expected] = c;
const got = nyaize(input);
assert.strictEqual(got, expected);
}
for (const c of cases) {
const [input,expected] = c;
const got = nyaize(input);
expect(got).toEqual(expected);
}
}
describe('nyaize', () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment