Skip to content

Commit

Permalink
Merge branch 'HS-1040983-amount-mapping' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
wrandall22 committed Oct 27, 2023
2 parents 8b62c7c + a60c1f1 commit 6035c37
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ describe('product config form component', function () {
})

it('should set the default amount if there are suggested amounts', () => {
$ctrl.suggestedAmounts = [{ AMOUNT: 14 }]
$ctrl.suggestedAmounts = [{ amount: 14 }]
$ctrl.setDefaultAmount()

expect($ctrl.itemConfig.AMOUNT).toEqual(14)
Expand All @@ -273,7 +273,7 @@ describe('product config form component', function () {

it('should use an existing suggestedAmounts', () => {
$ctrl.itemConfig.AMOUNT = 14
$ctrl.suggestedAmounts = [{ AMOUNT: 14 }]
$ctrl.suggestedAmounts = [{ amount: 14 }]
$ctrl.setDefaultAmount()

expect($ctrl.itemConfig.AMOUNT).toEqual(14)
Expand All @@ -290,7 +290,7 @@ describe('product config form component', function () {

it('should initialize the custom value with suggestedAmounts', () => {
$ctrl.itemConfig.AMOUNT = 14
$ctrl.suggestedAmounts = [{ AMOUNT: 25 }]
$ctrl.suggestedAmounts = [{ amount: 25 }]
$ctrl.setDefaultAmount()

expect($ctrl.itemConfig.AMOUNT).toEqual(14)
Expand Down

0 comments on commit 6035c37

Please sign in to comment.