Skip to content

Commit

Permalink
fix: remove test for removed function
Browse files Browse the repository at this point in the history
  • Loading branch information
njlie committed Jul 23, 2024
1 parent dcee655 commit c3bc37b
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions packages/token-introspection/src/client/introspection.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import {
createIntrospectionRoutes,
introspectToken,
validateTokenAccess
} from './introspection'
import { createIntrospectionRoutes, introspectToken } from './introspection'
import { OpenAPI, HttpMethod } from '@interledger/openapi'
import { AccessAction } from '@interledger/open-payments'
import {
defaultAxiosInstance,
mockOpenApiResponseValidators,
Expand Down Expand Up @@ -98,16 +93,4 @@ describe('introspection', (): void => {
scope.done()
})
})

describe('validateTokenAccess', (): void => {
test('returns valid token access', async (): Promise<void> => {
const tokenInfo = mockTokenInfo()
expect(
validateTokenAccess(tokenInfo, {
type: tokenInfo.access?.[0].type as string,
action: tokenInfo.access?.[0].actions[0] as AccessAction
})
).toEqual(tokenInfo.access?.[0])
})
})
})

0 comments on commit c3bc37b

Please sign in to comment.