push
github
6368 of 6617 branches covered (96.24%)
47551 of 49487 relevant lines covered (96.09%)
121.28 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 |
}, |
3✔ |
26 |
}, |
3✔ |
27 |
} |
× |
28 |
|
× |
29 |
static defaultBadgeData = { label: 'chat' } |
× |
30 |
|
× |
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✔ |