Skip to content

best way to save what you love

api/tests/soundcloud: add tests for region locked and paid songs

wukko9b0e4ab0bdb5
diff --git a/api/src/util/tests/soundcloud.json b/api/src/util/tests/soundcloud.json
index ea705cb5..04ed8632 100644
--- a/api/src/util/tests/soundcloud.json
+++ b/api/src/util/tests/soundcloud.json
@@ -83,5 +83,24 @@
"code": 200,
"status": "tunnel"
}
+ },
+ {
+ "name": "go+ song, should fail",
+ "url": "https://soundcloud.com/dualipa/illusion-1",
+ "params": {},
+ "expected": {
+ "code": 400,
+ "status": "error"
+ }
+ },
+ {
+ "name": "region locked song, should fail",
+ "canFail": true,
+ "url": "https://soundcloud.com/gotye/somebody-2024-feat-kimbra",
+ "params": {},
+ "expected": {
+ "code": 400,
+ "status": "error"
+ }
}
]
\ No newline at end of file