mirror of
https://github.com/teamhanko/hanko.git
synced 2025-10-27 06:06:54 +08:00
21 lines
569 B
TypeScript
21 lines
569 B
TypeScript
import {
|
|
ConfigClient,
|
|
Hanko,
|
|
PasscodeClient,
|
|
PasswordClient,
|
|
UserClient,
|
|
WebauthnClient,
|
|
} from "../src";
|
|
|
|
describe("class hanko", () => {
|
|
it("should hold instances of available Hanko API clients", async () => {
|
|
const hanko = new Hanko("http://api.test");
|
|
|
|
expect(hanko.config).toBeInstanceOf(ConfigClient);
|
|
expect(hanko.user).toBeInstanceOf(UserClient);
|
|
expect(hanko.passcode).toBeInstanceOf(PasscodeClient);
|
|
expect(hanko.password).toBeInstanceOf(PasswordClient);
|
|
expect(hanko.webauthn).toBeInstanceOf(WebauthnClient);
|
|
});
|
|
});
|