Equality of HttpsError
: AssertionError: expected promise to be rejected with 'Error: uid-is-missing' but it was rejected with 'Error: uid-is-missing'
#920
Labels
Related issues
[REQUIRED] Version info
node: v14.15.4
firebase-functions: 3.14.1
firebase-tools: -
firebase-admin: 9.9.0
[REQUIRED] Test case
function.ts
function_test.ts
[REQUIRED] Steps to reproduce
functions_test.ts
functions.ts
mocha --timeout 20000 --require ts-node/register --recursive \"test_e2e/**/*_test.ts\" --reporter spec -u tdd
[REQUIRED] Expected behavior
The test should pass, because the two
HttpsErrors
are the same.[REQUIRED] Actual behavior
The problem is the equality of
HttpsError
. If I store theHttpsError
as a global variable, I can reuse it my tests. But this is only a workaround. Is there a way to achieve equality forHttpsError
or to testHttpsError
better?Were you able to successfully deploy your functions?
The text was updated successfully, but these errors were encountered: