Skip to content

Commit

Permalink
PP-11594 Remove Pact tests no longer required
Browse files Browse the repository at this point in the history
- Remove ‘apple pay toggle with unsupported payment provider request’ test
- Remove ‘google pay toggle with unsupported payment provider request' test
  • Loading branch information
JFSGDS committed Oct 26, 2023
1 parent d6f0428 commit d4d525f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,28 +61,4 @@ describe('connector client - patch apple pay toggle (enabled) request', () => {
.notify(done)
})
})

describe('apple pay toggle with unsupported payment provider request', () => {
const applePayToggleUnsupportedPaymentProviderState = `User ${existingGatewayAccountId} exists in the database`

before(() => {
return provider.addInteraction(
new PactInteractionBuilder(`${ACCOUNTS_RESOURCE}/${existingGatewayAccountId}`)
.withUponReceiving('a valid patch apple pay toggle (enabled) request')
.withState(applePayToggleUnsupportedPaymentProviderState)
.withMethod('PATCH')
.withRequestBody(request)
.withStatusCode(400)
.build())
})

afterEach(() => provider.verify())

it('should respond bad request for unsupported payment provider', done => {
connectorClient.toggleApplePay(existingGatewayAccountId, true, null)
.should.be.rejected.then(response => {
expect(response.errorCode).to.equal(400)
}).should.notify(done)
})
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -61,28 +61,4 @@ describe('connector client - patch google pay toggle (enabled) request', () => {
.notify(done)
})
})

describe('google pay toggle with unsupported payment provider request', () => {
const googlePayToggleUnsupportedPaymentProviderState = `User ${existingGatewayAccountId} exists in the database`

before(() => {
return provider.addInteraction(
new PactInteractionBuilder(`${ACCOUNTS_RESOURCE}/${existingGatewayAccountId}`)
.withUponReceiving('a valid patch google pay toggle (enabled) request')
.withState(googlePayToggleUnsupportedPaymentProviderState)
.withMethod('PATCH')
.withRequestBody(request)
.withStatusCode(400)
.build())
})

afterEach(() => provider.verify())

it('should respond bad request for unsupported payment provider', done => {
connectorClient.toggleGooglePay(existingGatewayAccountId, true, null)
.should.be.rejected.then(response => {
expect(response.errorCode).to.equal(400)
}).should.notify(done)
})
})
})

0 comments on commit d4d525f

Please sign in to comment.