diff --git a/jest.config.js b/jest.config.js index 68a1144bcb17feb585b3725e5d323b0414dd91cc..a1d8c22c46eb9e2af27371cbda86fc9d70fd7ea2 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,4 +1,7 @@ module.exports = { testURL: 'http://localhost:8000', preset: 'jest-puppeteer', + globals: { + APP_TYPE: false, + }, }; diff --git a/src/utils/authority.test.js b/src/utils/authority.test.js index 8a6cd41f37f9c797adaef9304f87fe3afd279123..15b3cb951465ecbbc3aa922635208895177f487a 100644 --- a/src/utils/authority.test.js +++ b/src/utils/authority.test.js @@ -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']);