Skip to content

Commit a25b19f

Browse files
committed
fix missing promise handling in test
1 parent cd54c8c commit a25b19f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Node-1st-gen/quickstarts/uppercase-rtdb/functions/test/test.offline.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ describe('Cloud Functions', () => {
8484
const wrapped = test.wrap(myFunctions.makeUppercase);
8585
// Since we've stubbed snap.ref.parent.child(childParam).set(setParam) to return true if it was
8686
// called with the parameters we expect, we assert that it indeed returned true.
87-
return assert.equal(wrapped(snap), true);
87+
return wrapped(snap).then(makeUppercaseResult => {
88+
return assert.equal(makeUppercaseResult, true);
89+
});
8890
// [END assertOffline]
8991
})
9092
});

0 commit comments

Comments
 (0)