mirror of
https://github.com/morten-olsen/aula-client.git
synced 2026-02-08 01:06:25 +01:00
19 lines
416 B
TypeScript
19 lines
416 B
TypeScript
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,
|
|
});
|
|
});
|
|
});
|