Skip to content

Commit

Permalink
api/test: migrate newgrounds tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperdefined committed Feb 14, 2025
1 parent 77ed3bc commit bff4f7e
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions api/src/util/tests/newgrounds.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
]

0 comments on commit bff4f7e

Please sign in to comment.