feat: refs #6629 test back
gitea/salix/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
849bcd1ff5
commit
807ddf07ad
|
@ -158,7 +158,7 @@ describe('Address updateAddress', () => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
fit('should update ticket observations when updateObservations is true', async() => {
|
it('should update ticket observations when updateObservations is true', async() => {
|
||||||
const tx = await models.Client.beginTransaction({});
|
const tx = await models.Client.beginTransaction({});
|
||||||
const client = 1103;
|
const client = 1103;
|
||||||
const address = 123;
|
const address = 123;
|
||||||
|
@ -197,12 +197,7 @@ describe('Address updateAddress', () => {
|
||||||
where: {ticketFk: ticket, observationTypeFk: observationType}
|
where: {ticketFk: ticket, observationTypeFk: observationType}
|
||||||
}, options);
|
}, options);
|
||||||
|
|
||||||
// const address = await models.Address.findById(addressId, null, options);
|
expect(updatedObservation.description).toEqual(addressObservation);
|
||||||
|
|
||||||
// const addressObservation = await models.addressObservation.findById(addressId, null, options);
|
|
||||||
|
|
||||||
expect(updatedObservation).toEqual(addressObservation);
|
|
||||||
// expect(1).toEqual(1);
|
|
||||||
|
|
||||||
await tx.rollback();
|
await tx.rollback();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
|
@ -148,7 +148,7 @@ module.exports = function(Self) {
|
||||||
SET to2.description = ao.description
|
SET to2.description = ao.description
|
||||||
WHERE ao.observationTypeFk = to2.observationTypeFk
|
WHERE ao.observationTypeFk = to2.observationTypeFk
|
||||||
AND a.id = ?
|
AND a.id = ?
|
||||||
AND t.shipped >= util.VN_CURDATE()`, [addressId]);
|
AND t.shipped >= util.VN_CURDATE()`, [addressId], myOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
return updatedAddress;
|
return updatedAddress;
|
||||||
|
|
Loading…
Reference in New Issue