From da4b927c852a4301422f1a37aa1b772e7aa7ba8e Mon Sep 17 00:00:00 2001 From: Aline Takechi Date: Thu, 24 Sep 2015 10:41:40 -0300 Subject: [PATCH] [JRD-342] userInfo changed based on passport User Profile definition --- test/test-auth.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/test/test-auth.js b/test/test-auth.js index f4ebd9c..b9dd63b 100644 --- a/test/test-auth.js +++ b/test/test-auth.js @@ -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@email.com'); + 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@email.com'); }, function (err) { should.fail(null, null, err);