Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/__tests__/sessionAuthenticationApi.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import nock from "nock";
import { Types } from "../index";
import { createClient } from "../__mocks__/base";
import SessionAuthenticationApi from "../services/sessionAuthentication";
import Client from "../client";
Expand All @@ -8,6 +9,15 @@ let client: Client;
let sessionAuthenticationApi: SessionAuthenticationApi;
let scope: nock.Scope;

describe("Session Authentication public types", (): void => {
test("exports AuthenticationSessionRequest through Types", (): void => {
const request: Types.sessionAuthentication.AuthenticationSessionRequest =
new Types.sessionAuthentication.AuthenticationSessionRequest();

expect(request).toBeInstanceOf(Types.sessionAuthentication.AuthenticationSessionRequest);
});
});

beforeEach((): void => {
if (!nock.isActive()) {
nock.activate();
Expand Down Expand Up @@ -107,4 +117,4 @@ describe("SessionAuthenticationApi", (): void => {
expectedResource.accountHolderId = "AH123456789";
expect(policy.resources).toEqual(new Set([expectedResource]));
});
});
});
1 change: 1 addition & 0 deletions src/typings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export * as platformsAccount from "./platformsAccount/models";
export * as platformsFund from "./platformsFund/models";
export * as platformsHostedOnboardingPage from "./platformsHostedOnboardingPage/models";
export * as recurring from "./recurring/models";
export * as sessionAuthentication from "./sessionAuthentication/models";
export * as storedValue from "./storedValue/models";
export * as tapi from "./tapi/models";
export * as terminal from "./terminal/models";
Expand Down