0
0
Fork 0

Updated unit test

This commit is contained in:
Joan Sanchez 2022-08-08 12:20:29 +02:00
parent 807a6fa16f
commit 582eb4d808
1 changed files with 2 additions and 16 deletions

View File

@ -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',