Skip to content

Commit 7b5f902

Browse files
committed
Solve all the test errors for createReadStream
Mock out add database id for the tests in createReadStream that correspond to createReadStream.
1 parent 364845b commit 7b5f902

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/request.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,11 @@ describe('Request', () => {
261261
describe('createReadStream', () => {
262262
beforeEach(() => {
263263
request.request_ = () => {};
264+
request.datastore = {
265+
addDatabaseIdToRequest(d: any, r: any) {
266+
addDatabaseIdToRequest(d, r);
267+
},
268+
};
264269
});
265270

266271
it('should throw if no keys are provided', () => {

0 commit comments

Comments
 (0)