Page MenuHomePhabricator

[Cashtab] Apply best practices to improve BalanceHeader integration tests
ClosedPublic

Authored by bytesofman on Feb 18 2024, 14:42.

Details

Summary

Clean up these tests with best practices learned from writing all the other tests

Test Plan

npm test

Diff Detail

Repository
rABC Bitcoin ABC
Branch
better-bh-test
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 27233
Build 54029: Build Diffcashtab-tests
Build 54028: arc lint + arc unit

Event Timeline

bytesofman added inline comments.
cashtab/src/components/Common/__tests__/BalanceHeader.test.js
45

if you expect it to be in the document, should use getBy... and not queryBy...

emack added a subscriber: emack.

Accepted with minor nit for consistency

cashtab/src/components/Common/__tests__/BalanceHeader.test.js
197–202

minor nit

This revision is now accepted and ready to land.Feb 19 2024, 06:56