Skip to content

Commit 41ebf6c

Browse files
committed
Add missed mocks of new methods
1 parent d4c3b84 commit 41ebf6c

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/collections/generate/mock.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ class GenerateMock {
7979
},
8080
batchDelete: jest.fn(),
8181
batchObjects: jest.fn(),
82+
batchReferences: jest.fn(),
83+
batchSend: jest.fn(),
84+
batchStream: jest.fn(),
8285
};
8386
grpc.add(WeaviateDefinition, weaviateMockImpl);
8487

src/collections/tenants/unit.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ const makeGrpcApp = () => {
4848
search: jest.fn(),
4949
batchDelete: jest.fn(),
5050
batchObjects: jest.fn(),
51+
batchReferences: jest.fn(),
52+
batchSend: jest.fn(),
53+
batchStream: jest.fn(),
5154
};
5255
const healthMockImpl: HealthServiceImplementation = {
5356
check: (request: HealthCheckRequest): Promise<HealthCheckResponse> =>

src/connection/unit.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,9 @@ const makeGrpcApp = () => {
281281
errors: [],
282282
};
283283
}),
284+
batchReferences: jest.fn(),
285+
batchSend: jest.fn(),
286+
batchStream: jest.fn(),
284287
};
285288
const healthMockImpl: HealthServiceImplementation = {
286289
check: (request: HealthCheckRequest): Promise<HealthCheckResponse> =>

0 commit comments

Comments
 (0)