12 lines
356 B
TypeScript
12 lines
356 B
TypeScript
import { assertEquals } from "jsr:@std/assert";
|
|
import { createAuthSdk } from "./mod.ts";
|
|
|
|
Deno.test("AuthSdk - initializes with config", () => {
|
|
const sdk = createAuthSdk({
|
|
authApiUrl: "http://localhost:8000",
|
|
timeoutMs: 3000,
|
|
});
|
|
assertEquals(typeof sdk.validateSession, "function");
|
|
assertEquals(typeof sdk.requireAuth, "function");
|
|
});
|