mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-30 02:18:29 +00:00
api/test: migrate newgrounds tests
This commit is contained in:
parent
219b5f732f
commit
7b776910e8
42
api/src/util/tests/newgrounds.json
Normal file
42
api/src/util/tests/newgrounds.json
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"name": "regular video",
|
||||||
|
"url": "https://www.newgrounds.com/portal/view/938050",
|
||||||
|
"params": {},
|
||||||
|
"expected": {
|
||||||
|
"code": 200,
|
||||||
|
"status": "tunnel"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "regular video (audio only)",
|
||||||
|
"url": "https://www.newgrounds.com/portal/view/938050",
|
||||||
|
"params": {
|
||||||
|
"downloadMode": "audio"
|
||||||
|
},
|
||||||
|
"expected": {
|
||||||
|
"code": 200,
|
||||||
|
"status": "tunnel"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "regular video (muted)",
|
||||||
|
"url": "https://www.newgrounds.com/portal/view/938050",
|
||||||
|
"params": {
|
||||||
|
"downloadMode": "mute"
|
||||||
|
},
|
||||||
|
"expected": {
|
||||||
|
"code": 200,
|
||||||
|
"status": "tunnel"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "regular music",
|
||||||
|
"url": "https://www.newgrounds.com/audio/listen/500476",
|
||||||
|
"params": {},
|
||||||
|
"expected": {
|
||||||
|
"code": 200,
|
||||||
|
"status": "tunnel"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
Loading…
Reference in New Issue
Block a user