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;
|
await vm.responseError(response);
|
||||||
try {
|
|
||||||
await vm.responseError(response);
|
|
||||||
} catch (e) {
|
|
||||||
error = e;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
expect(error).toEqual(expect.objectContaining(response));
|
|
||||||
expect(vm.quasar.notify).toHaveBeenCalledWith(expect.objectContaining(
|
expect(vm.quasar.notify).toHaveBeenCalledWith(expect.objectContaining(
|
||||||
{
|
{
|
||||||
type: 'negative',
|
type: 'negative',
|
||||||
|
@ -80,15 +73,8 @@ describe('App', () => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
let error;
|
await vm.responseError(response);
|
||||||
try {
|
|
||||||
await vm.responseError(response);
|
|
||||||
} catch (e) {
|
|
||||||
error = e;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
expect(error).toEqual(expect.objectContaining(response));
|
|
||||||
expect(vm.quasar.notify).toHaveBeenCalledWith(expect.objectContaining(
|
expect(vm.quasar.notify).toHaveBeenCalledWith(expect.objectContaining(
|
||||||
{
|
{
|
||||||
type: 'negative',
|
type: 'negative',
|
||||||
|
|
Loading…
Reference in New Issue