Skip to content

Commit

Permalink
pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
luisrudge committed Apr 5, 2018
1 parent c2e60c1 commit 95bf9fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions test/authentication/authentication.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ describe('auth0.authentication', function() {
error_description: 'foobar'
});
});
it('returns ssoData object with lastUsedConnection and idtokenpayload.name when there is no idtokenpayload.email', function(
it('returns ssoData object with lastUsedConnection and idTokenPayload.name when there is no idTokenPayload.email', function(
done
) {
this.auth0.getSSOData(function(err, result) {
Expand All @@ -391,7 +391,7 @@ describe('auth0.authentication', function() {
idTokenPayload: { sub: 'the-user-id', name: 'last-used-user-name' }
});
});
it('returns ssoData object with lastUsedConnection and idtokenpayload.email by default', function(
it('returns ssoData object with lastUsedConnection and idTokenPayload.email by default', function(
done
) {
this.auth0.getSSOData(function(err, result) {
Expand All @@ -416,6 +416,7 @@ describe('auth0.authentication', function() {
});
});
});

context('when inside of the hosted login page', function() {
before(function() {
this.auth0 = new Authentication(this.webAuthSpy, {
Expand Down
4 changes: 2 additions & 2 deletions test/web-auth/hosted-pages.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ describe('auth0.WebAuth._universalLogin', function() {
request.get.restore();
});

it('should call ssodata with all the options', function(done) {
it('should call /user/ssodata with all the options', function(done) {
stub(request, 'get', function(url) {
expect(url).to.be('https://me.auth0.com/user/ssodata/');
return new RequestMock({
Expand All @@ -425,7 +425,7 @@ describe('auth0.WebAuth._universalLogin', function() {
done();
});
});
it('should call ssodata with all the ad options', function(done) {
it('should call /user/ssodata with all the AD options', function(done) {
stub(request, 'get', function(url) {
expect(url).to.be('https://me.auth0.com/user/ssodata?ldaps=1&client_id=...');
return new RequestMock({
Expand Down

0 comments on commit 95bf9fc

Please sign in to comment.