Closed nhunzaker closed 6 years ago
:exclamation: No coverage uploaded for pull request base (
master@ee1bb57
). Click here to learn what that means. The diff coverage is84.61%
.
@@ Coverage Diff @@
## master #485 +/- ##
=========================================
Coverage ? 97.99%
=========================================
Files ? 29
Lines ? 698
Branches ? 135
=========================================
Hits ? 684
Misses ? 12
Partials ? 2
Impacted Files | Coverage Δ | |
---|---|---|
packages/microcosm/src/ledger.js | 88.88% <0%> (ø) |
|
packages/microcosm/src/domain.js | 97.95% <100%> (ø) |
|
packages/microcosm/src/microcosm.js | 100% <100%> (ø) |
|
packages/microcosm/src/subject.js | 100% <100%> (ø) |
|
packages/microcosm/src/observable.js | 97.72% <75%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update ee1bb57...dc068c8. Read the comment docs.
This commit adds the
map
method to Observables. This is useful for transforming a stream of values over time, necessary to fully replace the old style of building models with Presenters:Long term, I kind of wonder if we should just pass
domains
as the first argument ofPresenter::getModel
, then this would just be:You could also call domain methods directly, maybe something like: