UNPKG

lh-sdk

Version:

LassondeHacks REST API SDK in Typescript

21 lines (17 loc) 571 B
import { expect } from 'chai'; import { Auth } from '../index'; describe('Authentification funtions test', () => { it('Should pass if Login is successful', () => { return Auth.login({ username: process.env.USERNAME, password: process.env.PASSWORD, }).then((success: boolean) => { expect(success).to.equal(true); }); }); it('Should pass if Logout is successful', () => { return Auth.logout().then((success: boolean) => { expect(success).to.equal(true); }); }); });