import { getGameVersionProviderByName } from "@/games/game-version-provider"; describe("getGameVersionProviderByName", () => { test("returns the correct provider for a given game name", async () => { const provider = getGameVersionProviderByName("minecraft"); expect(provider).toBeDefined(); }); test("returns undefined for a non-existing game name", async () => { const provider = getGameVersionProviderByName("unknown-game"); expect(provider).toBeUndefined(); }); });