keycloak-scim/js/libs/keycloak-admin-client/test/serverInfo.spec.ts
Jon Koops 8cb202eb29
Add JavaScript admin client to repository (#16697)
* Add JavaScript admin client to repository

* Apply review feedback

Co-authored-by: Stian Thorgersen <stian@redhat.com>

---------

Co-authored-by: Stian Thorgersen <stian@redhat.com>
2023-02-03 10:45:11 +00:00

20 lines
512 B
TypeScript

// tslint:disable:no-unused-expression
import * as chai from "chai";
import { KeycloakAdminClient } from "../src/client.js";
import { credentials } from "./constants.js";
const expect = chai.expect;
describe("Server Info", () => {
let client: KeycloakAdminClient;
before(async () => {
client = new KeycloakAdminClient();
await client.auth(credentials);
});
it("list server info", async () => {
const serverInfo = await client.serverInfo.find();
expect(serverInfo).to.be.ok;
});
});