Skip to content

Commit

Permalink
update node tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tnorling authored and konstantin-msft committed Oct 21, 2024
1 parent 021c7f7 commit 9a786cb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/msal-node/test/config/ClientConfiguration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
ConfidentialClientApplication,
} from "../../src";
import { OnBehalfOfRequest } from "../../src/request/OnBehalfOfRequest";
import { RANDOM_TEST_GUID } from "../test_kit/StringConstants.js";

describe("ClientConfiguration tests", () => {
test("builds configuration and assigns default functions", () => {
Expand Down Expand Up @@ -203,6 +204,7 @@ describe("ClientConfiguration tests", () => {
const request: ClientCredentialRequest = {
scopes: TEST_CONSTANTS.DEFAULT_GRAPH_SCOPE,
skipCache: true,
correlationId: RANDOM_TEST_GUID,
};

await new ConfidentialClientApplication(
Expand All @@ -215,7 +217,7 @@ describe("ClientConfiguration tests", () => {
DEFAULT_OPENID_CONFIG_RESPONSE.body.token_endpoint.replace(
"{tenant}",
"tenantid"
),
) + `?client-request-id=${RANDOM_TEST_GUID}`,
expect.objectContaining({
body: expect.stringContaining("TEST-CAPABILITY"),
})
Expand All @@ -227,6 +229,7 @@ describe("ClientConfiguration tests", () => {
scopes: TEST_CONSTANTS.DEFAULT_GRAPH_SCOPE,
oboAssertion: "user_assertion_hash",
skipCache: true,
correlationId: RANDOM_TEST_GUID,
};

const appConfig: Configuration = {
Expand Down Expand Up @@ -258,7 +261,7 @@ describe("ClientConfiguration tests", () => {
DEFAULT_OPENID_CONFIG_RESPONSE.body.token_endpoint.replace(
"{tenant}",
"tenantid"
),
) + `?client-request-id=${RANDOM_TEST_GUID}`,
expect.objectContaining({
body: expect.stringContaining("TEST-CAPABILITY"),
})
Expand Down

0 comments on commit 9a786cb

Please sign in to comment.