test-to-dev #1478

Merged
alexandre merged 53 commits from test-to-dev into dev 2023-04-24 06:54:33 +00:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit ce3e299d09 - Show all commits

View File

@ -38,6 +38,7 @@ describe('Item editFixedPrice()', () => {
try {
const filter = {'it.categoryFk': 1};
const secondFilter = {where: {'it.categoryFk': 1}};
const ctx = {
args: {
filter: filter
@ -50,7 +51,7 @@ describe('Item editFixedPrice()', () => {
await models.FixedPrice.editFixedPrice(ctx, field, newValue, null, filter, options);
const [result] = await models.FixedPrice.filter(ctx, filter, options);
const [result] = await models.FixedPrice.filter(ctx, secondFilter, options);
expect(result[field]).toEqual(newValue);