refs #6213 fixSpec
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Pablo Natek 2023-09-19 07:33:27 +02:00
parent c1da4815cb
commit 361c2b4cad
2 changed files with 2 additions and 2 deletions

View File

@ -126,12 +126,12 @@ describe('loopback model Supplier', () => {
}); });
describe('after save observer', () => { describe('after save observer', () => {
fit('should update the account attribute when a new supplier is created', async() => { it('should update the account attribute when a new supplier is created', async() => {
const tx = await models.Supplier.beginTransaction({}); const tx = await models.Supplier.beginTransaction({});
const options = {transaction: tx}; const options = {transaction: tx};
try { try {
const newSupplier = await models.Supplier.create({id: '6969', name: 'Alfred Pennyworth'}, options); const newSupplier = await models.Supplier.create({id: '9999', name: 'Alfred Pennyworth'}, options);
const fetchedSupplier = await models.Supplier.findById(newSupplier.id, null, options); const fetchedSupplier = await models.Supplier.findById(newSupplier.id, null, options);
expect(fetchedSupplier.account).toEqual('4100006969'); expect(fetchedSupplier.account).toEqual('4100006969');