Skip to content

Commit

Permalink
[PR feedback] Test improvements
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Stoltzfus <jastoltz24@gmail.com>
  • Loading branch information
Constance and JasonStoltz authored Jun 23, 2021
1 parent 96c9319 commit 308a880
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ describe('EngineLogic', () => {

it('handles 5xx errors', async () => {
mount();
jest.spyOn(EngineLogic.actions, 'setEngineNotFound');
http.get.mockReturnValue(Promise.reject('An error occured'));

EngineLogic.actions.initializeEngine();
Expand All @@ -243,6 +242,7 @@ describe('EngineLogic', () => {
describe('pollEmptyEngine', () => {
beforeEach(() => jest.useFakeTimers());
afterEach(() => jest.clearAllTimers());
afterAll(() => jest.useRealTimers());

it('starts a poll', () => {
mount();
Expand Down

0 comments on commit 308a880

Please sign in to comment.