pshenmic / platform-explorer

Dash Platform explorer
https://platform-explorer.vercel.app
8 stars 3 forks source link

Identities sort by balance test fix #257

Open owl352 opened 1 week ago

owl352 commented 1 week ago

Issue

At this moment, our test for identities with sortBy=balance throws error on deepEquals. The reason for this - Math.random() for balance, sometimes balance on several identities can be the same and that's violates this test

Things done

1000 * Math.random() replaced with 25 * (i+1) before DAPI mock added mock.reset() tiny lint

vercel[bot] commented 1 week ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
platform-explorer-mainnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 7, 2024 6:28pm
platform-explorer-testnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 7, 2024 6:28pm