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
F2917848: D4560.id14796.diff
Mon, Oct 7, 9:31 AM
F2917793: D4560.id14782.diff
Mon, Oct 7, 9:30 AM
F2917557: D4560.id14584.diff
Mon, Oct 7, 9:23 AM
F2915726: D4560.diff
Mon, Oct 7, 7:19 AM
Unknown Object (File)
Wed, Sep 25, 2:28 AM
Unknown Object (File)
Wed, Sep 25, 2:28 AM
Unknown Object (File)
Wed, Sep 25, 2:28 AM
Unknown Object (File)
Wed, Sep 25, 2:28 AM

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

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