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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bytesofman added inline comments.
cashtab/src/components/Common/__tests__/BalanceHeader.test.js
45 ↗(On Diff #45362)

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 ↗(On Diff #45362)

minor nit

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