5275-item.fixed-price_refactor #1426
|
@ -42,7 +42,7 @@ describe('upsertFixedPrice()', () => {
|
||||||
|
|
||||||
delete ctx.args.started;
|
delete ctx.args.started;
|
||||||
delete ctx.args.ended;
|
delete ctx.args.ended;
|
||||||
ctx.args.hasMinPrice = true;
|
ctx.args.hasMinPrice = false;
|
||||||
|
|
||||||
expect(result).toEqual(jasmine.objectContaining(ctx.args));
|
expect(result).toEqual(jasmine.objectContaining(ctx.args));
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ describe('upsertFixedPrice()', () => {
|
||||||
|
|
||||||
delete ctx.args.started;
|
delete ctx.args.started;
|
||||||
delete ctx.args.ended;
|
delete ctx.args.ended;
|
||||||
ctx.args.hasMinPrice = false;
|
ctx.args.hasMinPrice = true;
|
||||||
|
|
||||||
expect(result).toEqual(jasmine.objectContaining(ctx.args));
|
expect(result).toEqual(jasmine.objectContaining(ctx.args));
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ describe('upsertFixedPrice()', () => {
|
||||||
rate2: rate2,
|
rate2: rate2,
|
||||||
rate3: firstRate3,
|
rate3: firstRate3,
|
||||||
minPrice: 0,
|
minPrice: 0,
|
||||||
hasMinPrice: false
|
hasMinPrice: true
|
||||||
}};
|
}};
|
||||||
|
|
||||||
// create new fixed price
|
// create new fixed price
|
||||||
|
|
|
@ -87,7 +87,7 @@ module.exports = Self => {
|
||||||
|
|
||||||
await targetItem.updateAttributes({
|
await targetItem.updateAttributes({
|
||||||
minPrice: args.minPrice,
|
minPrice: args.minPrice,
|
||||||
hasMinPrice: args.hasMinPrice ? args.hasMinPrice : false
|
hasMinPrice: args.hasMinPrice
|
||||||
}, myOptions);
|
}, myOptions);
|
||||||
|
|
||||||
const itemFields = [
|
const itemFields = [
|
||||||
|
|
Loading…
Reference in New Issue