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

MediaComem / biopocket-backend / 118 / 1
92%
master: 92%

Build:
Build:
LAST BUILD BRANCH: story-2-user-registration
DEFAULT BRANCH: master
Ran 18 May 2018 01:28PM UTC
Files 53
Run time 2s
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

18 May 2018 01:17PM UTC coverage: 91.878%. First build
NODE_ENV=test SESSION_SECRET=secret

push

travis-ci

Tazaf
Handle method not allowed on routes

Added a new mechanism to handle methods that are not allowed on a specific
route.

This introduces several things:

A new error, called `methodNotAllowed` that sends a 405 HTTP code with
the appropriate header.

This error is called by a middleware, `allowsOnylMethod` in the
`server/api/utils/api.js` file.

This middleware is then used in each `*.routes.js` file, which have
changed a little.
Now, they exports two things :
* The router for this resource
* An object listing the methods allowed on each route

New tests have been added on the test suite for each resource API that
tests that it correctly reject any request on a route with an unallowed
HTTP methods.

424 of 526 branches covered (80.61%)

Branch coverage included in aggregate %.

1714 of 1801 relevant lines covered (95.17%)

35.72 hits per line

Source Files on job 118.1 (NODE_ENV=test SESSION_SECRET=secret)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 115
  • Travis Job 118.1
  • 9f69737b on github
  • Next Job for NODE_ENV=test SESSION_SECRET=secret on method-not-allowed (#125.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