rowt/svelte/src/routes/sverdle/game.test.ts
2023-07-16 18:42:59 +02:00

10 lines
254 B
TypeScript

import { describe, it, expect } from 'vitest';
import { Game } from './game';
describe('game test', () => {
it('returns true when a valid word is entered', () => {
const game = new Game();
expect(game.enter('zorro'.split(''))).toBe(true);
});
});