Files
aula-client/tests/login.test.ts
Morten Olsen a181db8c49 init
2021-08-17 23:27:18 +02:00

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,
});
});
});