You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be really nice to have an example how to assert HttpsError, which are thrown by a cloud function.
exports.testCallable=functions.https.onCall((data,context)=>{console.log('testCallable');returnnewfunctions.https.HttpsError('ok','this is an error');})
How to write a test, that a HttpsError with the message this is an error was thrown?
The text was updated successfully, but these errors were encountered:
It would be really nice to have an example how to assert
HttpsError
, which are thrown by a cloud function.How to write a test, that a
HttpsError
with the messagethis is an error
was thrown?The text was updated successfully, but these errors were encountered: