mirror of
https://github.com/Kir-Antipov/mc-publish.git
synced 2024-11-22 16:31:04 -05:00
15 lines
510 B
TypeScript
15 lines
510 B
TypeScript
import { getGameVersionProviderByName } from "@/games/game-version-provider";
|
|
|
|
describe("getGameVersionProviderByName", () => {
|
|
test("returns the correct provider for a given game name", () => {
|
|
const provider = getGameVersionProviderByName("minecraft");
|
|
|
|
expect(provider).toBeDefined();
|
|
});
|
|
|
|
test("returns undefined for a non-existing game name", () => {
|
|
const provider = getGameVersionProviderByName("unknown-game");
|
|
|
|
expect(provider).toBeUndefined();
|
|
});
|
|
});
|