Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update tests
  • Loading branch information
tnorling committed Jun 25, 2020
commit e2bfb8b9e7c4bc9568f1b8c443319247a32f55db
7 changes: 6 additions & 1 deletion lib/msal-core/test/authority/TrustedAuthority.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,14 @@ describe("TrustedAuthority.ts Class", function () {
describe("setTrustedAuthoritiesFromNetwork", () => {
it("Sets TrustedHostList with Authorities known to Microsoft via Instance Discovery Network Call", async () => {
const countBefore = TrustedAuthority.getTrustedHostList().length;
await TrustedAuthority.setTrustedAuthoritiesFromNetwork(stubbedTelemetryManager);
await TrustedAuthority.setTrustedAuthoritiesFromNetwork(TEST_CONFIG.validAuthority + "/", stubbedTelemetryManager);
const countAfter = TrustedAuthority.getTrustedHostList().length;
expect(countBefore).to.be.lessThan(countAfter);
});

it("Sets TrustedHostList with Custom Domain known to Microsoft via Instance Discovery Network Call", async () => {
await TrustedAuthority.setTrustedAuthoritiesFromNetwork("https://login.windows-ppe.net/common/", stubbedTelemetryManager);
expect(TrustedAuthority.IsInTrustedHostList("login.windows-ppe.net")).to.be.true;
});
});
});