We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54c6b48 commit e454dd4Copy full SHA for e454dd4
spec/v2.spec.ts
@@ -1423,8 +1423,8 @@ describe('v2', () => {
1423
});
1424
1425
describe('callable functions', () => {
1426
- it('should return correct data', () => {
1427
- const cloudFunction = https.onCall((req) => 'hello');
+ it('should return correct data', async () => {
+ const cloudFunction = https.onCall(() => 'hello');
1428
cloudFunction.__endpoint = {
1429
platform: 'gcfv2',
1430
labels: {},
@@ -1435,7 +1435,7 @@ describe('v2', () => {
1435
};
1436
1437
const wrappedCF = wrapV2(cloudFunction);
1438
- const result = wrappedCF({} as any);
+ const result = await wrappedCF({} as any);
1439
expect(result).equal('hello');
1440
1441
0 commit comments