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

source-academy / cadet-frontend / 2173
30%

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

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

Jobs
ID Job ID Ran Files Coverage
1 2173.1 14 Jul 2019 11:43AM UTC 0
30.41
Travis Job 2173.1
Source Files on build 2173
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2173
  • 0c9b33c1 on github
  • Prev Build on master (#2169)
  • Next Build on master (#2177)
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