Skip to content

Commit e454dd4

Browse files
committed
fix: await for result in callable functions test
1 parent 54c6b48 commit e454dd4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/v2.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,8 +1423,8 @@ describe('v2', () => {
14231423
});
14241424

14251425
describe('callable functions', () => {
1426-
it('should return correct data', () => {
1427-
const cloudFunction = https.onCall((req) => 'hello');
1426+
it('should return correct data', async () => {
1427+
const cloudFunction = https.onCall(() => 'hello');
14281428
cloudFunction.__endpoint = {
14291429
platform: 'gcfv2',
14301430
labels: {},
@@ -1435,7 +1435,7 @@ describe('v2', () => {
14351435
};
14361436

14371437
const wrappedCF = wrapV2(cloudFunction);
1438-
const result = wrappedCF({} as any);
1438+
const result = await wrappedCF({} as any);
14391439
expect(result).equal('hello');
14401440
});
14411441
});

0 commit comments

Comments
 (0)