wordDatabase.test.ts 308 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 import { expect } from "chai"; import { WordDatabase } from "../database/WordDatabase"; describe("단어 데이터베이스", () => { it("랜덤한 단어를 반환합니다", () => { const wordDatabase = new WordDatabase("./database.db"); expect(wordDatabase.getWords(3).length).eq(3); }); });