fix: backTest
gitea/salix/pipeline/head This commit is unstable Details

This commit is contained in:
Vicent Llopis 2022-08-04 09:53:22 +02:00
parent 998176f03c
commit 020990dadc
4 changed files with 9 additions and 5 deletions

View File

@ -2568,3 +2568,7 @@ INSERT INTO `vn`.`mdbVersion` (`app`, `branchFk`, `version`)
VALUES
('tpv', 'test', '1'),
('lab', 'master', '1');
INSERT INTO `vn`.`accountingConfig` (`id`, `minDate`, `maxDate`)
VALUES
(1, '2022-01-01', '2023-01-01');

View File

@ -8,9 +8,9 @@ describe('ticket listPackaging()', () => {
const options = {transaction: tx};
const filter = {where: {packagingFk: 1}};
const response = await models.Packaging.listPackaging(filter, options);
const [response] = await models.Packaging.listPackaging(filter, options);
expect(response[0].name).toEqual('Container ammo box 1m');
expect(response.name).toEqual('Container ammo box 1m');
await tx.rollback();
} catch (e) {

View File

@ -8,7 +8,7 @@ describe('department removeChild()', () => {
});
it('should remove a child department', async() => {
const childId = 1;
const childId = 44;
removedChild = await app.models.Department.findById(childId);
const result = await app.models.Department.removeChild(childId);