2612-create-supplier #1089

Merged
joan merged 21 commits from 2612-create-supplier into dev 2022-10-25 10:42:10 +00:00
1 changed files with 14 additions and 0 deletions
Showing only changes of commit a4243e14c5 - Show all commits

View File

@ -0,0 +1,14 @@
const app = require('vn-loopback/server/server');
describe('Supplier newSupplier()', () => {
const supplier = {
name: 'TestSupplier-1'
};
it('should create a new supplier containing only the name', async() => {
const result = await app.models.Supplier.newSupplier(supplier);
expect(result.payDemFk).toEqual('TestSupplier-1');
expect(result.payDemFk).toEqual(1);
});
});