Skip to content

Commit

Permalink
test(test): fixing failing test due to function name change
Browse files Browse the repository at this point in the history
  • Loading branch information
hlminh2000 committed Jul 12, 2019
1 parent 1fccd7b commit 560d1da
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import utils from '../src/ego-token-utils'

const {
isValidJwt,
getAuthorizedProgramScopes,
getReadableProgramScopes,
isDccMember,
canReadProgram,
canWriteProgram,
Expand Down Expand Up @@ -116,16 +116,16 @@ describe('isValidJwt', () => {
})
})

describe('getAuthorizedProgramScopes', () => {
describe('getReadableProgramScopes', () => {
it('should return authorized program scopes', () => {
expect(getAuthorizedProgramScopes(DATA_SUBMITTER)).toEqual([
expect(getReadableProgramScopes(DATA_SUBMITTER)).toEqual([
{ policy: 'PROGRAM-WP-CPMP-US', permission: 'READ' },
{ policy: 'PROGRAM-PACA-AU', permission: 'READ' }
])
expect(getAuthorizedProgramScopes(PROGRAM_ADMIN)).toEqual([
expect(getReadableProgramScopes(PROGRAM_ADMIN)).toEqual([
{ policy: 'PROGRAM-PACA-AU', permission: 'WRITE' }
])
expect(getAuthorizedProgramScopes(DCC_USER)).toEqual([])
expect(getReadableProgramScopes(DCC_USER)).toEqual([])
})
})

Expand Down

0 comments on commit 560d1da

Please sign in to comment.