test: change search test query #50
ci.yaml
on: push
Test and Deploy to Staging
20s
Annotations
2 errors
src/modules/search/controllers/search.controller.spec.ts > SearchController > search everything:
src/modules/search/controllers/search.controller.spec.ts#L28
AssertionError: expected [Function] to not throw an error but '[\n {\n "code": "invalid_type",\n…' was thrown
- Expected:
undefined
+ Received:
"[
{
\"code\": \"invalid_type\",
\"expected\": \"string\",
\"received\": \"undefined\",
\"path\": [
\"topQuery\",
\"results\",
0,
\"album\"
],
\"message\": \"Required\"
},
{
\"code\": \"invalid_type\",
\"expected\": \"string\",
\"received\": \"undefined\",
\"path\": [
\"topQuery\",
\"results\",
0,
\"url\"
],
\"message\": \"Required\"
},
{
\"code\": \"invalid_type\",
\"expected\": \"string\",
\"received\": \"undefined\",
\"path\": [
\"topQuery\",
\"results\",
0,
\"primaryArtists\"
],
\"message\": \"Required\"
},
{
\"code\": \"invalid_type\",
\"expected\": \"string\",
\"received\": \"undefined\",
\"path\": [
\"topQuery\",
\"results\",
0,
\"singers\"
],
\"message\": \"Required\"
},
{
\"code\": \"invalid_type\",
\"expected\": \"string\",
\"received\": \"undefined\",
\"path\": [
\"topQuery\",
\"results\",
0,
\"language\"
],
\"message\": \"Required\"
}
]"
❯ src/modules/search/controllers/search.controller.spec.ts:28:47
|
Test and Deploy to Staging
Process completed with exit code 1.
|