From 582eb4d808540501d3206191a172060135bf2127 Mon Sep 17 00:00:00 2001 From: joan Date: Mon, 8 Aug 2022 12:20:29 +0200 Subject: [PATCH] Updated unit test --- src/__tests__/App.spec.js | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) 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',