Skip to content

Commit

Permalink
Add test for fallback app name if address is unexpected
Browse files Browse the repository at this point in the history
  • Loading branch information
kpyszkowski committed Oct 12, 2023
1 parent 112e081 commit 98dfe40
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/utils/__tests__/getStakingAppLabel.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,10 @@ describe("Staking app label utils tests", () => {
expect(resultTbtcName).toBe(tbtcName)
expect(resultRandomBeaconName).toBe(randomBeaconName)
})

it("returns fallback value if address is unexpected", () => {
const resultName = getStakingAppLabelFromAppAddress("0xun3xp3c73d400r3s5")

expect(resultName).toBe("App")
})
})

0 comments on commit 98dfe40

Please sign in to comment.