wordDatabase.test.ts 308 Bytes
import { expect } from "chai";
import { WordDatabase } from "../database/WordDatabase";

describe("단어 데이터베이스", () => {
  it("랜덤한 단어를 반환합니다", () => {
    const wordDatabase = new WordDatabase("./database.db");
    expect(wordDatabase.getWords(3).length).eq(3);
  });
});