UNPKG

cbp-lib

Version:

Libraries for cbp

38 lines (27 loc) 1.08 kB
import { assert } from 'chai'; // Using Assert style import { expect } from 'chai'; // Using Expect style import { should } from 'chai'; // Using Should style import {UserManagementClient, AuthenticationClient} from '../dist/cbp-lib.es' describe('Unit Testing', () => { describe('UserManagementClient test', () => { const mgmt = new UserManagementClient({ domain: 'domain', token: '123456.f5km9Fkf' }) it('it should delete user.', () => { expect(mgmt.users.delete()).to.equal('Delete user') }) it('it should get user by id.', () => { expect(mgmt.users.get()).to.equal('Get user by id') }) it('it should get users.', () => { expect(mgmt.users.getAll()).to.equal('Get all users') }) it('it should create user.', () => { expect(mgmt.users.create()).to.equal('Create user') }) it('it should update user.', () => { expect(mgmt.users.update()).to.equal('Update user') }) }) })