rowt/svelte/src/routes/sverdle/game.test.ts

10 lines
254 B
TypeScript
Raw Normal View History

2023-06-16 20:11:42 +02:00
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);
});
});