diff --git a/src/__tests__/App.spec.js b/src/__tests__/App.spec.js index 56f3c782d..c5be66823 100644 --- a/src/__tests__/App.spec.js +++ b/src/__tests__/App.spec.js @@ -52,15 +52,8 @@ describe('App', () => { } }; - let error; - try { - await vm.responseError(response); - } catch (e) { - error = e; - } + await vm.responseError(response); - - expect(error).toEqual(expect.objectContaining(response)); expect(vm.quasar.notify).toHaveBeenCalledWith(expect.objectContaining( { type: 'negative', @@ -80,15 +73,8 @@ describe('App', () => { } }; - let error; - try { - await vm.responseError(response); - } catch (e) { - error = e; - } + await vm.responseError(response); - - expect(error).toEqual(expect.objectContaining(response)); expect(vm.quasar.notify).toHaveBeenCalledWith(expect.objectContaining( { type: 'negative',