Skip to content

Commit c6961e5

Browse files
committed
api/test: migrate newgrounds tests
1 parent 5bc133f commit c6961e5

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

Diff for: api/src/util/tests/newgrounds.json

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
[
2+
{
3+
"name": "regular video",
4+
"url": "https://www.newgrounds.com/portal/view/938050",
5+
"params": {},
6+
"expected": {
7+
"code": 200,
8+
"status": "tunnel"
9+
}
10+
},
11+
{
12+
"name": "regular video (audio only)",
13+
"url": "https://www.newgrounds.com/portal/view/938050",
14+
"params": {
15+
"downloadMode": "audio"
16+
},
17+
"expected": {
18+
"code": 200,
19+
"status": "tunnel"
20+
}
21+
},
22+
{
23+
"name": "regular video (muted)",
24+
"url": "https://www.newgrounds.com/portal/view/938050",
25+
"params": {
26+
"downloadMode": "mute"
27+
},
28+
"expected": {
29+
"code": 200,
30+
"status": "tunnel"
31+
}
32+
},
33+
{
34+
"name": "regular music",
35+
"url": "https://www.newgrounds.com/audio/listen/500476",
36+
"params": {},
37+
"expected": {
38+
"code": 200,
39+
"status": "tunnel"
40+
}
41+
}
42+
]

0 commit comments

Comments
 (0)