Fix typings
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user