push
github
6292 of 6553 branches covered (96.02%)
47370 of 49926 relevant lines covered (94.88%)
116.99 hits per line
1 |
import { pathParams } from '../index.js' |
|
2 |
import { description, YouTubeVideoBase } from './youtube-base.js' |
3✔ |
3 |
|
3✔ |
4 |
export default class YouTubeLikes extends YouTubeVideoBase { |
|
5 |
static route = {
|
3✔ |
6 |
base: 'youtube/likes', |
3✔ |
7 |
pattern: ':videoId', |
3✔ |
8 |
} |
3✔ |
9 |
|
3✔ |
10 |
static openApi = {
|
3✔ |
11 |
'/youtube/likes/{videoId}': {
|
3✔ |
12 |
get: {
|
3✔ |
13 |
summary: 'YouTube Video Likes', |
3✔ |
14 |
description, |
3✔ |
15 |
parameters: pathParams({
|
3✔ |
16 |
name: 'videoId', |
3✔ |
17 |
example: 'abBdk8bSPKU', |
3✔ |
18 |
}), |
3✔ |
19 |
}, |
3✔ |
20 |
}, |
3✔ |
21 |
} |
3✔ |
22 |
|
3✔ |
23 |
static render({ statistics, id }) {
|
|
24 |
return super.renderSingleStat({ |
× |
25 |
statistics, |
1✔ |
26 |
statisticName: 'like', |
1✔ |
27 |
id, |
1✔ |
28 |
}) |
1✔ |
29 |
} |
1✔ |
30 |
} |
3✔ |