Keycloak
21 строка · 547.0 Байт
1// tslint:disable:no-unused-expression
2import * as chai from "chai";3import { KeycloakAdminClient } from "../src/client.js";4import { credentials } from "./constants.js";5
6const expect = chai.expect;7
8describe("Who am I", () => {9let client: KeycloakAdminClient;10
11before(async () => {12client = new KeycloakAdminClient();13await client.auth(credentials);14});15
16it("list who I am", async () => {17const whoAmI = await client.whoAmI.find();18expect(whoAmI).to.be.ok;19expect(whoAmI.displayName).to.be.equal("admin");20});21});22