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

@ -2567,4 +2567,8 @@ INSERT INTO `vn`.`mdbBranch` (`name`)
INSERT INTO `vn`.`mdbVersion` (`app`, `branchFk`, `version`)
VALUES
('tpv', 'test', '1'),
('lab', 'master', '1');
('lab', 'master', '1');
INSERT INTO `vn`.`accountingConfig` (`id`, `minDate`, `maxDate`)
VALUES
(1, '2022-01-01', '2023-01-01');

View File

@ -34197,7 +34197,7 @@ CREATE TABLE `report` (
-- Temporary table structure for view `returnBuckets`
--
DROP TABLE IF EXISTS `returnBuckets`;
DROP TABLE IF EXISTS `returnBuckets`;
/*!50001 DROP VIEW IF EXISTS `returnBuckets`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;

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);