chore: Adds missing method to mocked catalog APIs

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2021-10-05 09:30:43 +02:00
parent 7413797ecf
commit 604987599e
14 changed files with 14 additions and 0 deletions
@@ -51,6 +51,7 @@ function mockCatalogClient(entity?: Entity): jest.Mocked<CatalogApi> {
removeLocationById: jest.fn(),
removeEntityByUid: jest.fn(),
refreshEntity: jest.fn(),
getEntityAncestors: jest.fn(),
};
if (entity) {
mock.getEntityByName.mockReturnValue(entity);