push
github
6292 of 6553 branches covered (96.02%)
47370 of 49926 relevant lines covered (94.88%)
116.99 hits per line
1 |
import { BaseStaticService, pathParams } from '../index.js' |
|
2 |
|
3✔ |
3 |
export default class Gitter extends BaseStaticService { |
|
4 |
static category = 'chat' |
3✔ |
5 |
|
3✔ |
6 |
static route = {
|
3✔ |
7 |
base: 'gitter/room', |
3✔ |
8 |
pattern: ':user/:repo', |
3✔ |
9 |
} |
3✔ |
10 |
|
3✔ |
11 |
static openApi = {
|
3✔ |
12 |
'/gitter/room/{user}/{repo}': {
|
3✔ |
13 |
get: {
|
3✔ |
14 |
summary: 'Gitter', |
3✔ |
15 |
parameters: pathParams(
|
3✔ |
16 |
{ |
3✔ |
17 |
name: 'user', |
3✔ |
18 |
example: 'nwjs', |
3✔ |
19 |
}, |
3✔ |
20 |
{ |
3✔ |
21 |
name: 'repo', |
3✔ |
22 |
example: 'nw.js', |
3✔ |
23 |
}, |
3✔ |
24 |
), |
3✔ |
25 |
}, |
× |
26 |
}, |
× |
27 |
} |
× |
28 |
|
× |
29 |
static defaultBadgeData = { label: 'chat' } |
3✔ |
30 |
|
3✔ |
31 |
static render() {
|
|
32 |
return { message: 'on gitter', color: 'brightgreen' } |
1✔ |
33 |
} |
1✔ |
34 |
|
3✔ |
35 |
handle() { |
|
36 |
return this.constructor.render() |
1✔ |
37 |
} |
1✔ |
38 |
} |
3✔ |