From 3cf512617d277f76fd4391273f5da6d23d51f71c Mon Sep 17 00:00:00 2001 From: hyperdefined Date: Tue, 26 Nov 2024 13:09:56 -0500 Subject: [PATCH] api/test: migrate newgrounds tests --- api/src/util/tests/newgrounds.json | 42 ++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 api/src/util/tests/newgrounds.json diff --git a/api/src/util/tests/newgrounds.json b/api/src/util/tests/newgrounds.json new file mode 100644 index 00000000..b0101c56 --- /dev/null +++ b/api/src/util/tests/newgrounds.json @@ -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" + } + } +] \ No newline at end of file