|
|
@ -102,15 +102,12 @@ describe('Scopes', () => { |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
it('Grants the write scopes without the monetary values', () => { |
|
|
it('Grants the write scopes without the monetary values', () => { |
|
|
const scopesOfAccessLevel = getScopesOfAccessLevel( |
|
|
expect( |
|
|
'CREATE_READ_RESTRICTED_UPDATE_DELETE' |
|
|
getScopesOfAccessLevel('CREATE_READ_RESTRICTED_UPDATE_DELETE') |
|
|
); |
|
|
).toEqual([ |
|
|
|
|
|
|
|
|
expect(scopesOfAccessLevel).toEqual([ |
|
|
|
|
|
...SCOPES_OF_READ_RESTRICTED_ACCESS, |
|
|
...SCOPES_OF_READ_RESTRICTED_ACCESS, |
|
|
...SCOPES_OF_WRITE_ACCESS |
|
|
...SCOPES_OF_WRITE_ACCESS |
|
|
]); |
|
|
]); |
|
|
expect(scopesOfAccessLevel).not.toContain(scopes.portfolioReadValues); |
|
|
|
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
// The dialog compares the access level of the stored scopes with the
|
|
|
// The dialog compares the access level of the stored scopes with the
|
|
|
|