UNPKG

tft-dataset

Version:

Basic informations on current tft set.

59 lines (58 loc) 3.65 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const vitest_1 = require("vitest"); const synergies_1 = require("./synergies"); const champions_1 = require("./champions"); const synergy_name_1 = require("./synergy-name"); (0, vitest_1.test)("Should contain all synergies", () => { (0, vitest_1.expect)(synergies_1.synergies.length).toEqual(26); // 15 original + 11 new TFT classes }); (0, vitest_1.test)("All synergies should contain levels", () => { const synergiesWithLevels = synergies_1.synergies.filter((s) => Object.keys(s.levels).length); (0, vitest_1.expect)(synergies_1.synergies.length).toEqual(synergiesWithLevels.length); }); // TFT Classes tests - checking number of champions per class (0, vitest_1.test)("Bastion class should have 7 champions", () => { const bastionChampions = champions_1.champions.filter((c) => c.synergies.includes(synergy_name_1.SynergyName.Bastion)); (0, vitest_1.expect)(bastionChampions.length).toEqual(7); }); (0, vitest_1.test)("Duelist class should have 7 champions", () => { const duelistChampions = champions_1.champions.filter((c) => c.synergies.includes(synergy_name_1.SynergyName.Duelist)); (0, vitest_1.expect)(duelistChampions.length).toEqual(7); }); (0, vitest_1.test)("Edgelord class should have 6 champions", () => { const edgelordChampions = champions_1.champions.filter((c) => c.synergies.includes(synergy_name_1.SynergyName.Edgelord)); (0, vitest_1.expect)(edgelordChampions.length).toEqual(6); }); (0, vitest_1.test)("Executioner class should have 6 champions", () => { const executionerChampions = champions_1.champions.filter((c) => c.synergies.includes(synergy_name_1.SynergyName.Executioner)); (0, vitest_1.expect)(executionerChampions.length).toEqual(6); }); (0, vitest_1.test)("Heavyweight class should have 6 champions", () => { const heavyweightChampions = champions_1.champions.filter((c) => c.synergies.includes(synergy_name_1.SynergyName.Heavyweight)); (0, vitest_1.expect)(heavyweightChampions.length).toEqual(6); }); (0, vitest_1.test)("Juggernaut class should have 7 champions", () => { const juggernautChampions = champions_1.champions.filter((c) => c.synergies.includes(synergy_name_1.SynergyName.Juggernaut)); (0, vitest_1.expect)(juggernautChampions.length).toEqual(7); }); (0, vitest_1.test)("Prodigy class should have 5 champions", () => { const prodigyChampions = champions_1.champions.filter((c) => c.synergies.includes(synergy_name_1.SynergyName.Prodigy)); (0, vitest_1.expect)(prodigyChampions.length).toEqual(5); }); (0, vitest_1.test)("Protector class should have 6 champions", () => { const protectorChampions = champions_1.champions.filter((c) => c.synergies.includes(synergy_name_1.SynergyName.Protector)); (0, vitest_1.expect)(protectorChampions.length).toEqual(6); }); (0, vitest_1.test)("Sniper class should have 6 champions", () => { const sniperChampions = champions_1.champions.filter((c) => c.synergies.includes(synergy_name_1.SynergyName.Sniper)); (0, vitest_1.expect)(sniperChampions.length).toEqual(6); }); (0, vitest_1.test)("Sorcerer class should have 7 champions", () => { const sorcererChampions = champions_1.champions.filter((c) => c.synergies.includes(synergy_name_1.SynergyName.Sorcerer)); (0, vitest_1.expect)(sorcererChampions.length).toEqual(7); }); (0, vitest_1.test)("Strategist class should have 4 champions", () => { const strategistChampions = champions_1.champions.filter((c) => c.synergies.includes(synergy_name_1.SynergyName.Strategist)); (0, vitest_1.expect)(strategistChampions.length).toEqual(4); });