Skip to content

Commit

Permalink
chore(open-payments): remove extraneous tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurapov committed Jan 13, 2023
1 parent b7035d2 commit 6490fff
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions packages/open-payments/src/client/quote.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,29 +35,6 @@ describe('quote', (): void => {
const paymentPointer = 'http://localhost:1000/.well-known/pay'
const accessToken = 'accessToken'

describe('createQuoteRoutes', (): void => {
test('creates getQuoteOpenApiValidator properly', async (): Promise<void> => {
jest.spyOn(openApi, 'createResponseValidator')

createQuoteRoutes({ axiosInstance, openApi, logger })
expect(openApi.createResponseValidator).toHaveBeenCalledWith({
path: '/quotes/{id}',
method: HttpMethod.GET
})
})

test('creates createQuoteOpenApiValidator properly', async (): Promise<void> => {
jest.spyOn(openApi, 'createResponseValidator')

createQuoteRoutes({ openApi, axiosInstance, logger })

expect(openApi.createResponseValidator).toHaveBeenCalledWith({
path: '/quotes',
method: HttpMethod.POST
})
})
})

describe('getQuote', (): void => {
test('returns the quote if it passes open api validation', async (): Promise<void> => {
const scope = nock(baseUrl).get(`/quotes/${quote.id}`).reply(200, quote)
Expand Down

0 comments on commit 6490fff

Please sign in to comment.