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

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

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

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%)

71.44 hits per line

Jobs
ID Job ID Ran Files Coverage
1 118.1 (NODE_ENV=test SESSION_SECRET=secret) 18 May 2018 01:28PM UTC 0
91.88
Travis Job 118.1
2 118.2 (NODE_ENV=test SESSION_SECRET=secret) 18 May 2018 01:28PM UTC 0
91.88
Travis Job 118.2
Source Files on build 118
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #118
  • 9f69737b on github
  • Next Build on method-not-allowed (#125)
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