diff --git a/src/utils/__tests__/getStakingAppLabel.test.ts b/src/utils/__tests__/getStakingAppLabel.test.ts index d289ff355..73f5ec170 100644 --- a/src/utils/__tests__/getStakingAppLabel.test.ts +++ b/src/utils/__tests__/getStakingAppLabel.test.ts @@ -9,39 +9,48 @@ import { getThresholdLib } from "../getThresholdLib" const MOCK_ADDRESSES: Record = { tbtc: getThresholdLib().multiAppStaking.ecdsa.address, randomBeacon: getThresholdLib().multiAppStaking.randomBeacon.address, + taco: getThresholdLib().multiAppStaking.taco.address, } const MOCK_LABELS: Record = { tbtc: "tBTC", randomBeacon: "Random Beacon", + taco: "TACo", } -const MOCK_APP_NAMES: StakingAppName[] = ["tbtc", "randomBeacon"] +const MOCK_APP_NAMES: StakingAppName[] = ["tbtc", "randomBeacon", "taco"] describe("Staking app label utils tests", () => { - const [tbtcName, rbName] = MOCK_APP_NAMES + const [tbtcName, rbName, tacoName] = MOCK_APP_NAMES const tbtcAddress = MOCK_ADDRESSES[tbtcName] const rbAddress = MOCK_ADDRESSES[rbName] + const tacoAddress = MOCK_ADDRESSES[tacoName] it("returns correct app label if app address is given", () => { const resultTbtcLabel = getStakingAppLabelFromAppAddress(tbtcAddress) const resultRbLabel = getStakingAppLabelFromAppAddress(rbAddress) + const resultTacoLabel = getStakingAppLabelFromAppAddress(tacoAddress) expect(resultTbtcLabel).toBe(MOCK_LABELS[tbtcName]) expect(resultRbLabel).toBe(MOCK_LABELS[rbName]) + expect(resultTacoLabel).toBe(MOCK_LABELS[tacoName]) }) it("returns correct app label if app name is given", () => { const resultTbtcLabel = getStakingAppLabelFromAppName(tbtcName) const resultRbLabel = getStakingAppLabelFromAppName(rbName) + const resultTacoLabel = getStakingAppLabelFromAppName(tacoName) expect(resultTbtcLabel).toBe(MOCK_LABELS[tbtcName]) expect(resultRbLabel).toBe(MOCK_LABELS[rbName]) + expect(resultTacoLabel).toBe(MOCK_LABELS[tacoName]) }) it("returns correct app name if address is given", () => { const resultTbtcName = getStakingAppNameFromAppAddress(tbtcAddress) const resultRbName = getStakingAppNameFromAppAddress(rbAddress) + const resultTacoName = getStakingAppNameFromAppAddress(tacoAddress) expect(resultTbtcName).toBe(tbtcName) expect(resultRbName).toBe(rbName) + expect(resultTacoName).toBe(tacoName) }) })