My tests in ssb-replication-scheduler were failing on findAndTombstone
Problem
There are two problems:
feedformat is supposed to be feedFormat
findAndTombstone mutates the input details to add .feedformat to it, so if you pass the same details object (like our tests do), it'll work, but if you pass two different objects that are deep equal, it won't work
Solution
Rename feedformat to feedFormat and don't mutate the inputs.
Context
My tests in ssb-replication-scheduler were failing on findAndTombstone
Problem
There are two problems:
feedformat
is supposed to befeedFormat
details
to add.feedformat
to it, so if you pass the samedetails
object (like our tests do), it'll work, but if you pass two different objects that are deep equal, it won't workSolution
Rename
feedformat
tofeedFormat
and don't mutate the inputs.1st :x: 2nd :heavy_check_mark: