Fix entity mocks in tests

Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
This commit is contained in:
Eric Peterson
2022-10-13 15:17:27 +02:00
parent 4830a3569f
commit d79f104234
5 changed files with 26 additions and 10 deletions
@@ -36,7 +36,9 @@ describe('GoCdArtifactsComponent', () => {
baseUrl: 'gocd.baseurl.com',
},
});
const entityValue = { entity: { metadata: {} } as Entity };
const entityValue = {
entity: { metadata: { name: 'mock' }, kind: 'MockKind' } as Entity,
};
const renderComponent = () =>
renderWithEffects(