20 lines
458 B
JavaScript
20 lines
458 B
JavaScript
|
describe('Auth Module', function() {
|
||
|
|
||
|
before(() => {
|
||
|
return Edge.connect();
|
||
|
});
|
||
|
|
||
|
after(() => {
|
||
|
Edge.disconnect();
|
||
|
});
|
||
|
|
||
|
it('should retrieve user informations', function() {
|
||
|
return Edge.rpc("getUserInfo")
|
||
|
.then(userInfo => {
|
||
|
chai.assert.isNotNull(userInfo.subject);
|
||
|
chai.assert.isNotNull(userInfo.role);
|
||
|
chai.assert.isNotNull(userInfo.preferredUsername);
|
||
|
})
|
||
|
});
|
||
|
|
||
|
});
|