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

medleyjs / serve-static / 7 / 3
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 28 Mar 2018 08:25PM UTC
Files 1
Run time 0s
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

28 Mar 2018 08:20PM UTC coverage: 100.0%. Remained the same
7.3

push

travis-ci

nwoltman
Disable send's directory redirect feature

It doesn't work well enough with prefixed routes due to Medley's routing. It's easier just to disable it entirely and consistently return a 404 for requests with a URL that doesn't end in a '/'.

Future Note:
The reason it doesn't work well is that the Medley app may or may not be using the 'strictRouting' option. To properly configure the serve-static plugin, the plugin would need to know the value of this option (so the app would need to expose it). Then serve-static would need to define different routes depending on the value of the option and pass the right pathname to the send module. It is doable, but would require several if-else statements and a bunch more tests.

14 of 14 branches covered (100.0%)

Branch coverage included in aggregate %.

24 of 24 relevant lines covered (100.0%)

12.21 hits per line

Source Files on job 7.3
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 1
  • Travis Job 7.3
  • 79741c8f on github
  • Prev Job for on master (#6.3)
  • Next Job for on master (#8.3)
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