Skip to content

Commit

Permalink
Merge branch 'fix-branded-checkout-defined-donor-details' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-bizz committed Dec 12, 2023
2 parents 36d64f1 + 65125f0 commit bd48c64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/branded/branded-checkout.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ describe('branded checkout', () => {
})),
scrollY: 100,
scrollTo: jest.fn(),
sessionStorage: {
removeItem: jest.fn(),
},
},
brandedAnalyticsFactory: {
savePurchase: jest.fn(),
Expand Down Expand Up @@ -69,6 +72,7 @@ describe('branded checkout', () => {
expect($ctrl.tsysService.setDevice).toHaveBeenCalledWith('test-env')
expect($ctrl.checkoutStep).toEqual('giftContactPayment')
expect($ctrl.formatDonorDetails).toHaveBeenCalled()
expect($ctrl.$window.sessionStorage.removeItem).toHaveBeenCalledWith('initialLoadComplete')
})
})

Expand Down

0 comments on commit bd48c64

Please sign in to comment.