2612-create-supplier #1089
|
@ -33,7 +33,6 @@ module.exports = Self => {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const supplier = await models.Supplier.create(params, myOptions);
|
const supplier = await models.Supplier.create(params, myOptions);
|
||||||
console.log('supplier: ', supplier);
|
|
||||||
|
|
||||||
if (tx) await tx.commit();
|
if (tx) await tx.commit();
|
||||||
|
|
||||||
|
|
|
@ -17,8 +17,6 @@ describe('Supplier newSupplier()', () => {
|
||||||
|
|
||||||
let result = await app.models.Supplier.newSupplier(JSON.stringify(newSupp));
|
let result = await app.models.Supplier.newSupplier(JSON.stringify(newSupp));
|
||||||
|
|
||||||
result = result.supplier;
|
|
||||||
|
|
||||||
expect(result.name).toEqual('TestSupplier-1');
|
expect(result.name).toEqual('TestSupplier-1');
|
||||||
expect(result.id).toEqual(443);
|
expect(result.id).toEqual(443);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue