Change allows users to pass app property in the mocked callable context, e.g.
export myFunc = functions.https.onCall((data, context) => {
if (context.app == undefined) {
throw new functions.https.HttpsError(
'failed-precondition',
'The function must be called from an App Check verified app.')
}
});
Change allows users to pass
app
property in the mocked callable context, e.g.Before
After
The diff on
main.spec.ts
looks terrible - I'm just adding a few test cases for callable functions, and indenting the ones that existed before.Fixes https://github.com/firebase/firebase-functions-test/issues/122