Fix EntityKindIcon test regarding prefixed MUI classes
- Simple fix not changing what is tested, but adjusting the way the element is queried Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
This commit is contained in:
@@ -24,7 +24,7 @@ describe('<EntityKindIcon />', () => {
|
||||
<EntityKindIcon kind="Component" />,
|
||||
);
|
||||
|
||||
expect(baseElement.querySelector('.MuiSvgIcon-root')).toBeInTheDocument();
|
||||
expect(baseElement.querySelector('svg')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('renders without exploding for unknown kind', async () => {
|
||||
@@ -32,6 +32,6 @@ describe('<EntityKindIcon />', () => {
|
||||
<EntityKindIcon kind="unknown" />,
|
||||
);
|
||||
|
||||
expect(baseElement.querySelector('.MuiSvgIcon-root')).toBeInTheDocument();
|
||||
expect(baseElement.querySelector('svg')).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user