forked from verdnatura/salix-front
Updated unit test
This commit is contained in:
parent
807a6fa16f
commit
582eb4d808
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue