test fixed

Signed-off-by: bogdannechyporenko <bogdannechiporenko@gmail.com>
This commit is contained in:
bogdannechyporenko
2023-01-30 20:04:44 +01:00
parent 958d922718
commit 0f79f14716
@@ -80,7 +80,11 @@ describe('UnregisterEntityDialog', () => {
it('can cancel', async () => {
const onClose = jest.fn();
stateSpy.mockImplementation(() => ({ type: 'loading' }));
stateSpy.mockImplementation(() => ({
type: 'bootstrap',
location: '',
deleteEntity: jest.fn(),
}));
await renderInTestApp(
<Wrapper>