mirror of
https://github.com/dd060606/WebAurion-API.git
synced 2026-01-18 16:47:26 +01:00
work on notes api
This commit is contained in:
16
tests/NotesApi.test.ts
Normal file
16
tests/NotesApi.test.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { login } from "../src/api/Session";
|
||||
describe("NotesApi", () => {
|
||||
it("should receive notes", 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);
|
||||
const schedule = await session.getNotesApi().fetchNotes();
|
||||
expect(schedule).not.toBeDefined();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user