Page MenuHomePhabricator

[lib] Introduce basic tests for `SET_MESSAGE_STORE_MESSAGES` action
ClosedPublic

Authored by atul on Jul 18 2022, 1:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 4:02 PM
Unknown Object (File)
Sat, Nov 23, 1:48 PM
Unknown Object (File)
Sat, Nov 23, 11:02 AM
Unknown Object (File)
Sat, Nov 2, 10:33 AM
Unknown Object (File)
Oct 22 2024, 3:45 PM
Unknown Object (File)
Oct 7 2024, 2:15 PM
Unknown Object (File)
Oct 7 2024, 2:15 PM
Unknown Object (File)
Oct 7 2024, 2:15 PM

Details

Summary

Had trouble debugging D4508 because I couldn't "attach" debugger to hermes in time for message-reducer.js:SET_MESSAGE_STORE_MESSAGES to hit.

Ended up testing via console.log(...) and pasting values into a text file to ensure that things were as expected. The stuff I jotted down lent itself well to writing basic unit tests so figured I might as well put it up.


Depends on D4508

Test Plan

Ran tests

Diff Detail

Repository
rCOMM Comm
Branch
arcpatch-D4560 (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul requested review of this revision.Jul 18 2022, 1:56 PM
This revision is now accepted and ready to land.Jul 19 2022, 2:44 AM