|
|
@@ -2,7 +2,7 @@ import { getAuthority } from './authority';
|
|
|
|
|
|
describe('getAuthority should be strong', () => {
|
|
|
it('empty', () => {
|
|
|
- expect(getAuthority(null)).toEqual(['admin']); // default value
|
|
|
+ expect(getAuthority(null)).toEqual(null); // default value
|
|
|
});
|
|
|
it('string', () => {
|
|
|
expect(getAuthority('admin')).toEqual(['admin']);
|