Skip to content

Commit

Permalink
[JRD-342] userInfo changed based on passport User Profile definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Aline Takechi committed Sep 24, 2015
1 parent d54ab60 commit da4b927
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions test/test-auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,16 @@ describe('Wrapper for carbono-auth', function () {
should.exist(user);
user.should.be.an('object');

user.should.have.property('name');
should.equal(user.name, 'fulano');
user.should.have.property('displayName');
should.equal(user.displayName, 'fulano');

user.should.have.property('code');
should.equal(user.code, '1234');
user.should.have.property('id');
should.equal(user.id, '1234');

user.should.have.property('email');
should.equal(user.email, '[email protected]');
user.should.have.property('emails');
user.emails.should.have.lenght > 0;
user.emails[0].should.have.property('value');
should.equal(user.emails[0].value, '[email protected]');
},
function (err) {
should.fail(null, null, err);
Expand Down

0 comments on commit da4b927

Please sign in to comment.