mirror of
https://github.com/dd060606/WebAurion-API.git
synced 2026-01-18 16:47:26 +01:00
16 lines
535 B
TypeScript
16 lines
535 B
TypeScript
import { login } from "../src/api/Session";
|
|
describe("ScheduleApi", () => {
|
|
it("should receive a schedule", async () => {
|
|
const username = process.env.TEST_USERNAME;
|
|
const password = process.env.TEST_PASSWORD;
|
|
if (!username || !password) {
|
|
throw new Error(
|
|
"TEST_USERNAME or TEST_PASSWORD is not set in environment variables.",
|
|
);
|
|
}
|
|
|
|
const session = await login(username, password);
|
|
await session.getScheduleApi().fetchSchedule();
|
|
});
|
|
});
|