Fix: Add error handling to queryAll method #108
Annotations
3 errors
test/query.test.ts > Test query and queryAll method > it should throw meaningful error if not existing table:
test/query.test.ts#L48
AssertionError: expected [Function] to throw error including 'Invalid search query. Detailed unproc…' but got 'getaddrinfo ENOTFOUND .suitetalk.api.…'
Expected: "Invalid search query. Detailed unprocessed description follows. Invalid search type: transactiontablethatdoesnotexist."
Received: "getaddrinfo ENOTFOUND .suitetalk.api.netsuite.com"
❯ test/query.test.ts:48:5
|
test/query.test.ts > Test query and queryAll method > it should throw meaningful error if not existing field:
test/query.test.ts#L57
AssertionError: expected [Function] to throw error including 'Invalid search query. Detailed unproc…' but got 'getaddrinfo ENOTFOUND .suitetalk.api.…'
Expected: "Invalid search query. Detailed unprocessed description follows. Search error occurred: Unknown identifier 'not_existing_field'. Available identifiers are: {customer=customer}"
Received: "getaddrinfo ENOTFOUND .suitetalk.api.netsuite.com"
❯ test/query.test.ts:57:5
|
Node 20
Process completed with exit code 1.
|