mc-publish/tests/unit/games/game-version-provider.spec.ts

16 lines
510 B
TypeScript
Raw Normal View History

import { getGameVersionProviderByName } from "@/games/game-version-provider";
describe("getGameVersionProviderByName", () => {
2023-05-18 13:33:21 -04:00
test("returns the correct provider for a given game name", () => {
const provider = getGameVersionProviderByName("minecraft");
expect(provider).toBeDefined();
});
2023-05-18 13:33:21 -04:00
test("returns undefined for a non-existing game name", () => {
const provider = getGameVersionProviderByName("unknown-game");
expect(provider).toBeUndefined();
});
});