test-to-dev #1478
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue