3312-ibanRequired #772
|
@ -20,7 +20,7 @@ describe('loopback model Supplier', () => {
|
||||||
const expectedError = 'You can not select this payment method without a registered bankery account';
|
const expectedError = 'You can not select this payment method without a registered bankery account';
|
||||||
const supplier = await app.models.Supplier.findById(1);
|
const supplier = await app.models.Supplier.findById(1);
|
||||||
|
|
||||||
await supplier.updateAttribute('payMethodFk', 4)
|
await supplier.updateAttribute('payMethodFk', 8)
|
||||||
.catch(e => {
|
.catch(e => {
|
||||||
error = e;
|
error = e;
|
||||||
|
|
||||||
|
@ -37,6 +37,7 @@ describe('loopback model Supplier', () => {
|
||||||
.catch(e => {
|
.catch(e => {
|
||||||
error = e;
|
error = e;
|
||||||
});
|
});
|
||||||
|
console.log(error);
|
||||||
|
|
||||||
expect(error).toBeDefined();
|
expect(error).toBeDefined();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue