• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mobxjs / mobx-state-tree / 331
0%

Build:
DEFAULT BRANCH: master
Ran 29 May 2017 02:39PM UTC
Jobs 1
Files 54
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
331

Pull #155

travis-ci

web-flow
Fix applySnapshot to map<string,boolean> bug

Primitive types removes from the map on applySnapshot if key exists.

const Store = types.model('Store', {
  tags: types.map(types.boolean),
})
let store = Store.create({tags: {admin: true}})
console.log(JSON.stringify(getSnapshot(store)))
applySnapshot(store, {tags: {admin: true}})
console.log(JSON.stringify(getSnapshot(store)))
applySnapshot(store, {tags: {admin: true}})
console.log(JSON.stringify(getSnapshot(store)))

Output:
{"tags":{"admin":true}}
{"tags":{}}
{"tags":{"admin":true}}
Pull Request #155: Fix applySnapshot to map<string,boolean> bug

539 of 681 branches covered (79.15%)

2474 of 2658 relevant lines covered (93.08%)

53.74 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
100.0
test-lib/src/types/complex-types/map.js
Jobs
ID Job ID Ran Files Coverage
1 331.1 29 May 2017 02:39PM UTC 0
93.08
Travis Job 331.1
Source Files on build 331
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #331
  • Pull Request #155
  • PR Base - master (#330)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc