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

source-academy / cadet-frontend / 2173 / 1
30%
master: 30%

Build:
DEFAULT BRANCH: master
Ran 14 Jul 2019 11:43AM UTC
Files 141
Run time 6s
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

14 Jul 2019 11:39AM UTC coverage: 30.41% (+1.7%) from 28.732%
2173.1

push

travis-ci

rrtheonlyone
Frontend Testing : Add test for backend Saga (#650)

* Add test for 3 action types for backendSaga:
- FETCH_AUTH
- FETCH_ASSESSMENT_OVERVIEWS
- FEtCH_ASSESSMENT

* Added tests for backendSaga
- Added imports from mocks folder
- Added test for type SUBMIT_ANSWER action
- Added general constants to use as mock for tests

* Added fringe cases for tests on actions for backendSaga. Action types:
FETCH_ASSESSMENT, FETCH_ASSESSMENT_OVERVIEWS, SUBMIT_ANSWER,
SUBMIT_ASSESSMENT

* - Finished writing test for FETCH_AUTH action for backendSaga with
fringe case.
- Changed store.dispatch to put in backendSaga

* Ran format

* Fix typo

* Modify describe and test descriptions, add small test to backendSaga

* Changes according to comments:
- Rename describe and test.
- Refactor SUBMIT_ANSWER, FETCH_AUTH, SUBMIT_ASSESSMENT parts of
backendSaga to use guard clauses.
- Refactor SUBMIT_ANSWER part of backendSaga to not mutate state.
- Made state in tests smaller and added expect where necessary to ensure store is not mutated.

* Added negated assertions to check that failed cases do not put actions.
Refactor SUBMIT_ASSESSMENT and SUBMIT_ANSWER to make happy path
prominent

* Removed unecessary comments

295 of 1603 branches covered (18.4%)

Branch coverage included in aggregate %.

1567 of 4520 relevant lines covered (34.67%)

2.31 hits per line

Source Files on job 2173.1
  • Tree
  • List 0
  • Changed 35
  • Source Changed 1
  • Coverage Changed 35
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 2034
  • Travis Job 2173.1
  • 0c9b33c1 on github
  • Prev Job for on master (#2169.1)
  • Next Job for on master (#2177.1)
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