Skip to content

Commit

Permalink
Removed unused request variable from api
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-wratt committed Apr 4, 2024
1 parent 3d0689e commit b6f4417
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
7 changes: 1 addition & 6 deletions src/mock/actions/credentials-exchange.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,7 @@ export function credentialsExchange({
Omit<CredentialsExchangeOptions, "request"> = {}) {
const event = events.credentialsExchange(attributes);

const { request } = event;

const { implementation, state } = api.credentialsExchange({
request,
cache,
});
const { implementation, state } = api.credentialsExchange({ cache });

async function simulate(handler: Handler) {
await handler(event, implementation);
Expand Down
3 changes: 0 additions & 3 deletions src/mock/api/credentials-exchange.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { request as mockRequest } from "../request";

export interface CredentialsExchangeOptions {
cache?: Record<string, string>;
request?: Auth0.Request;
}

export interface CredentialsExchangeState {
Expand All @@ -16,11 +15,9 @@ export interface CredentialsExchangeState {
}

export function credentialsExchange({
request,
cache,
}: CredentialsExchangeOptions = {}) {
const apiCache = mockCache(cache);
const requestValue = request ?? mockRequest();

const state: CredentialsExchangeState = {
access: { denied: false },
Expand Down

0 comments on commit b6f4417

Please sign in to comment.