chore: init

This commit is contained in:
2026-01-29 16:41:55 +02:00
commit b26a659d0c
19 changed files with 587 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import { test, expect } from "bun:test";
import { APIClient } from "../src/Client";
test.todo("Authenticated API request", async () => {
const client = new APIClient({
username: process.env.USERNAME!,
password: process.env.PASSWORD!
});
const token = await client.getToken();
expect(typeof token.token).toBe("string");
console.log(token);
const user = await client.apiRequest("https://family.e-klase.lv/api/user");
console.log(await user.json());
});