Details
Details
- Reviewers
bytesofman Fabien - Group Reviewers
Restricted Project - Commits
- rABC144e5d653d92: [Cashtab][Alias] Add chronik mock
npm test
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- chronikMock
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 24639 Build 48875: Build Diff cashtab-tests Build 48874: arc lint + arc unit
Event Timeline
cashtab/src/utils/__mocks__/chronikMock.js | ||
---|---|---|
8 ↗ | (On Diff #41655) | limit the logic added here to only what you need for the websocket tests we have a lot of chronik unit tests in cashtab that should use the mock. Understandably beyond the scope of this diff. difficult to review the mock when it's just dumped in and not implemented. Can add to this as its implemented in other existing unit tests. |
cashtab/src/utils/__tests__/transactions.test.js | ||
---|---|---|
116 | why mock this with jest? you have included this method in MockChronikClient, where it can be set by the setMock method If jest is a better way to do it in Cashtab, don't include these methods in the mock |