21 lines
561 B
TypeScript
21 lines
561 B
TypeScript
|
import * as chai from "chai";
|
||
|
import { KeycloakAdminClient } from "../src/client.js";
|
||
|
import { credentials } from "./constants.js";
|
||
|
|
||
|
const expect = chai.expect;
|
||
|
|
||
|
describe("Client Registration Policies", () => {
|
||
|
let client: KeycloakAdminClient;
|
||
|
|
||
|
before(async () => {
|
||
|
client = new KeycloakAdminClient();
|
||
|
await client.auth(credentials);
|
||
|
});
|
||
|
|
||
|
it("list client registration policies", async () => {
|
||
|
const clientRegistrationPolicies =
|
||
|
await client.clientRegistrationPolicies.find();
|
||
|
expect(clientRegistrationPolicies).to.be.ok;
|
||
|
});
|
||
|
});
|