Browse Source

bugfix: fix test

pull/3929/head
陈帅 7 years ago
parent
commit
ac4e1db33d
  1. 3
      jest.config.js
  2. 2
      src/utils/authority.test.js

3
jest.config.js

@ -1,4 +1,7 @@
module.exports = {
testURL: 'http://localhost:8000',
preset: 'jest-puppeteer',
globals: {
APP_TYPE: false,
},
};

2
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']);

Loading…
Cancel
Save