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

salesforce / refocus / 9569 / 1
89%
master: 89%

Build:
DEFAULT BRANCH: master
Ran 06 Jun 2019 11:32PM UTC
Files 163
Run time 10s
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

06 Jun 2019 11:17PM UTC coverage: 87.476% (+0.03%) from 87.443%
9569.1

push

travis-ci

web-flow
Add publish tests for real-time events for subjects (#1180)

* Add publish tests for real-time events for subjects

Fix bugs uncovered by these new tests:
- do not publish an add event when creating a subject with isPublished=false
- when checking whether a subject's "isPublished" attribtue was changed. we were just looking at the current (new) value and the list of fields marked as changed by sequelize... but this causing problems for PUT operations... even if the PUT was NOT changing the isPublished attribute, if the field was included in the request body, then sequelize was including it in the list of changed fields. So I have updated the check to ALSO look at the old value only treat it as changed if the new value !== the old value
- when tags or absolutePath changes, we send a remove event then an add event so that filtering is correct - fix the remove event so that it is populated with the "old" values
- if a non-filtering attribute changes, we should be sending an update event (but we weren't)
- for bulk deletes, we were double-publishing - once from the db's afterDestroy and again from the bulkDeleteSubjects implementation, so remove the publish call from bulkDeleteSubjects and just let the db layer handle it

* Update subjects.js

2812 of 3601 branches covered (78.09%)

7620 of 8711 relevant lines covered (87.48%)

532.96 hits per line

Source Files on job 9569.1
  • Tree
  • List 0
  • Changed 30
  • Source Changed 2
  • Coverage Changed 30
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 8536
  • Travis Job 9569.1
  • 8a626000 on github
  • Prev Job for on master (#9565.1)
  • Next Job for on master (#9574.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc