mirror of
https://github.com/imputnet/cobalt.git
synced 2025-01-15 03:15:14 +00:00
api/test: migrate newgrounds tests
This commit is contained in:
parent
3652c6458c
commit
3cf512617d
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 a new issue