import { describe, it, expect } from "vitest";
import { germanWordListCatalog } from "./index.js";

describe("german word lists", () => {
  it("has descriptors", () => {
    expect(germanWordListCatalog.descriptors.length).toBeGreaterThan(0);
  });

  it("can load descriptor data", async () => {
    const descriptors = germanWordListCatalog.getDescriptorsByExamGrade("A1");
    expect(descriptors.length).toBeGreaterThan(0);
    const data = await descriptors[0].load();
    expect(data.words).toBeDefined();
    expect(data.words.length).toBeGreaterThan(0);
  });
});
