Fix typings

Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
Vincenzo Scamporlino
2022-06-23 20:30:42 +02:00
parent 6a1e7fbe52
commit 8b39d640b1
3 changed files with 3 additions and 12 deletions
@@ -30,6 +30,7 @@ describe('AuthorizedEntitiesCatalog', () => {
facets: jest.fn(),
refresh: jest.fn(),
listAncestors: jest.fn(),
paginatedEntities: jest.fn(),
};
const fakePermissionApi = {
authorize: jest.fn(),
@@ -1281,7 +1281,6 @@ describe('DefaultEntitiesCatalog', () => {
{
targetRef: 'targetRef',
type: 'ownedBy',
target: { kind: 'k', namespace: 'default', name: 'targetRef' },
},
],
});
@@ -1297,20 +1296,10 @@ describe('DefaultEntitiesCatalog', () => {
{
targetRef: 'anotherTargetRef',
type: 'ownedBy',
target: {
kind: 'k',
namespace: 'default',
name: 'anotherTargetRef',
},
},
{
targetRef: 'tt',
type: 'somethingelse',
target: {
kind: 'k',
namespace: 'default',
name: 'tt',
},
},
],
});
@@ -1326,7 +1315,6 @@ describe('DefaultEntitiesCatalog', () => {
{
targetRef: 'targetRef',
type: 'ownedBy',
target: { kind: 'k', namespace: 'default', name: 'targetRef' },
},
],
});
@@ -635,6 +635,7 @@ describe('createRouter readonly enabled', () => {
removeEntityByUid: jest.fn(),
entityAncestry: jest.fn(),
facets: jest.fn(),
paginatedEntities: jest.fn(),
};
locationService = {
getLocation: jest.fn(),
@@ -825,6 +826,7 @@ describe('NextRouter permissioning', () => {
removeEntityByUid: jest.fn(),
entityAncestry: jest.fn(),
facets: jest.fn(),
paginatedEntities: jest.fn(),
};
locationService = {
getLocation: jest.fn(),