push
github
6368 of 6617 branches covered (96.24%)
47551 of 49487 relevant lines covered (96.09%)
121.28 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({ |
1✔ |
25 |
statistics, |
× |
26 |
statisticName: 'like', |
1✔ |
27 |
id, |
× |
28 |
}) |
1✔ |
29 |
} |
1✔ |
30 |
} |
3✔ |