No flags found
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
8573c4a
... +0 ...
8663e21
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
1 | - | /** |
|
2 | - | * Copyright(c) cnpm and other contributors. |
|
3 | - | * MIT Licensed |
|
4 | - | * |
|
5 | - | * Authors: |
|
6 | - | * dead_horse <dead_horse@qq.com> (http://deadhorse.me) |
|
7 | - | */ |
|
8 | - | ||
9 | 1 | 'use strict'; |
|
10 | 2 | ||
11 | - | /** |
|
12 | - | * Module dependencies. |
|
13 | - | */ |
|
14 | - | ||
15 | 3 | var config = require('../config'); |
|
16 | 4 | ||
17 | 5 | /** |
23 | 23 | } |
|
24 | 24 | ||
25 | 25 | // package not found |
|
26 | - | m = /\/package\/([\w\-\_\.]+)\/?$/.exec(this.url); |
|
26 | + | m = /^\/package\/([\w\-\_\.]+)\/?$/.exec(this.url); |
|
27 | + | if (!m) { |
|
28 | + | // scoped packages |
|
29 | + | m = /^\/package\/(@[\w\-\.]+\/[\w\-\.]+)$/.exec(this.path); |
|
30 | + | } |
|
27 | 31 | var name = null; |
|
28 | 32 | var title = '404: Page Not Found'; |
|
29 | 33 | if (m) { |
Learn more Showing 2 files with coverage changes found.
controllers/sync_module_worker.js
middleware/web_not_found.js
Files | Coverage |
---|---|
common | 67.39% |
controllers | -0.23% 83.00% |
middleware | 0.79% 95.13% |
models | 89.56% |
routes | 100.00% |
servers | 90.91% |
services | 88.40% |
sync | 90.91% |
config/index.js | 76.47% |
lib/common.js | 88.46% |
Project Totals (102 files) | 85.56% |
8663e21
8573c4a