mirror of
https://github.com/morten-olsen/aula-client.git
synced 2026-02-08 01:06:25 +01:00
init
This commit is contained in:
18
tests/login.test.ts
Normal file
18
tests/login.test.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
require('dotenv').config();
|
||||
import { AulaClient } from '../src';
|
||||
|
||||
describe('login', () => {
|
||||
let client: AulaClient;
|
||||
|
||||
beforeEach(() => {
|
||||
client = new AulaClient(process.env.USERNAME!, process.env.PASSWORD!);
|
||||
});
|
||||
|
||||
it('should be able to log in', async () => {
|
||||
await client.login();
|
||||
await client.request({
|
||||
method: 'presence.getDailyOverview',
|
||||
childIds: client.childIds,
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user