Fix incidental console error spy that was unneeded

pull/85578/head
Tom Ratcliffe 1 year ago committed by Tom Ratcliffe
parent 6557f5a00e
commit 76c6e029a5
  1. 8
      public/app/features/playlist/PlaylistNewPage.test.tsx

@ -39,15 +39,11 @@ function getTestContext({ name, interval, items }: Partial<Playlist> = {}) {
}
describe('PlaylistNewPage', () => {
beforeEach(() => {
jest.spyOn(console, 'error').mockImplementation(() => {});
});
describe('when mounted', () => {
it('then header should be correct', () => {
it('then header should be correct', async () => {
getTestContext();
expect(screen.getByRole('heading', { name: /new playlist/i })).toBeInTheDocument();
expect(await screen.findByRole('heading', { name: /new playlist/i })).toBeInTheDocument();
});
});

Loading…
Cancel
Save