-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JRD-342] userInfo changed based on passport User Profile definition
- Loading branch information
Aline Takechi
committed
Sep 24, 2015
1 parent
d54ab60
commit da4b927
Showing
1 changed file
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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); | ||
|