Skip to content

Commit

Permalink
fix(test): Fixed unit test
Browse files Browse the repository at this point in the history
close #41
  • Loading branch information
Retro64 committed Apr 19, 2017
1 parent 36ee565 commit a771102
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions integration-test/oauth-tooling/tokenCache.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,9 @@ describe('tokenCache', () => {
const secondAccessToken = '9sdf8fd8-be1d-4f0f-b4cb-54nk66n45knk';

nock(oauthHost)
.post('/access_token?realm=/services')
.post('/access_token?realm=/services', function (body: any) {
return body.scope === 'nucleus.write nucleus.read';
})
.reply(HttpStatus.OK, {
access_token: firstAccessToken
})
Expand All @@ -322,7 +324,9 @@ describe('tokenCache', () => {
'uid': 'uid',
'access_token': firstAccessToken
})
.post('/access_token?realm=/services')
.post('/access_token?realm=/services', function (body : any) {
return body.scope === 'all';
})
.reply(HttpStatus.OK, {
access_token: secondAccessToken
})
Expand Down

0 comments on commit a771102

Please sign in to comment.