Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottDormand96 committed Dec 13, 2023
1 parent 30a14f3 commit 98a85da
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ describe('choose payment > result function', () => {
})

it('returns common result ok when payment is not going to be recurring', async () => {
const mockRequest = getMockRequest({ payload: 'recurring-payment' === 'no' })
const mockRequest = getMockRequest({ payload: { 'recurring-payment': 'no' } })

const result = await resultFunction(mockRequest)

expect(result).toBe(CommonResults.OK)
})

it('returns common result as recurring when payment is recurring payment', async () => {
const mockRequest = getMockRequest({ payload: 'recurring-payment' === 'yes' })
it.only('returns common result as recurring when payment is recurring payment', async () => {
const mockRequest = getMockRequest({ payload: { 'recurring-payment': 'yes' } })

const result = await resultFunction(mockRequest)

Expand Down

0 comments on commit 98a85da

Please sign in to comment.