21 lines
520 B
JavaScript
21 lines
520 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 => {
|
|
console.log("getUserInfo result:", userInfo);
|
|
chai.assert.property(userInfo, 'subject');
|
|
chai.assert.property(userInfo, 'role');
|
|
chai.assert.property(userInfo, 'preferredUsername');
|
|
})
|
|
});
|
|
|
|
}); |