Skip to content

Commit 364845b

Browse files
committed
addDatabaseIdToRequest
Add addDatabaseIdToRequest to the transaction test framework so that it can be used in the tests.
1 parent f167ce3 commit 364845b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/transaction.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import {Datastore, DatastoreRequest, Query, TransactionOptions} from '../src';
2323
import {Entity} from '../src/entity';
2424
import * as tsTypes from '../src/transaction';
2525
import * as sinon from 'sinon';
26+
import {addDatabaseIdToRequest} from '../src/util';
2627

2728
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2829
type Any = any;
@@ -61,6 +62,9 @@ describe('Transaction', () => {
6162
request_() {},
6263
projectId: PROJECT_ID,
6364
namespace: NAMESPACE,
65+
addDatabaseIdToRequest(d: any, r: any) {
66+
addDatabaseIdToRequest(d, r);
67+
},
6468
} as {} as Datastore;
6569

6670
function key(path: Path) {

0 commit comments

Comments
 (0)