This commit is contained in:
Morten Olsen
2021-08-17 23:27:18 +02:00
commit a181db8c49
13 changed files with 2956 additions and 0 deletions

18
tests/login.test.ts Normal file
View 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,
});
});
});