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)
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
Unknown Object (File)
Wed, Sep 25, 2:28 AM
Unknown Object (File)
Wed, Sep 25, 12:08 AM
Unknown Object (File)
Wed, Sep 18, 1:49 PM
Unknown Object (File)
Sat, Sep 7, 5:27 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
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