fix: backTest
gitea/salix/pipeline/head This commit is unstable
Details
gitea/salix/pipeline/head This commit is unstable
Details
This commit is contained in:
parent
998176f03c
commit
020990dadc
|
@ -2568,3 +2568,7 @@ INSERT INTO `vn`.`mdbVersion` (`app`, `branchFk`, `version`)
|
||||||
VALUES
|
VALUES
|
||||||
('tpv', 'test', '1'),
|
('tpv', 'test', '1'),
|
||||||
('lab', 'master', '1');
|
('lab', 'master', '1');
|
||||||
|
|
||||||
|
INSERT INTO `vn`.`accountingConfig` (`id`, `minDate`, `maxDate`)
|
||||||
|
VALUES
|
||||||
|
(1, '2022-01-01', '2023-01-01');
|
||||||
|
|
|
@ -8,9 +8,9 @@ describe('ticket listPackaging()', () => {
|
||||||
const options = {transaction: tx};
|
const options = {transaction: tx};
|
||||||
|
|
||||||
const filter = {where: {packagingFk: 1}};
|
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();
|
await tx.rollback();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
|
@ -8,7 +8,7 @@ describe('department removeChild()', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should remove a child department', async() => {
|
it('should remove a child department', async() => {
|
||||||
const childId = 1;
|
const childId = 44;
|
||||||
|
|
||||||
removedChild = await app.models.Department.findById(childId);
|
removedChild = await app.models.Department.findById(childId);
|
||||||
const result = await app.models.Department.removeChild(childId);
|
const result = await app.models.Department.removeChild(childId);
|
||||||
|
|
Loading…
Reference in New Issue