Skip to content

Commit

Permalink
bugfix: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Apr 4, 2019
1 parent 4cc4415 commit ac4e1db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
module.exports = {
testURL: 'http://localhost:8000',
preset: 'jest-puppeteer',
globals: {
APP_TYPE: false,
},
};
2 changes: 1 addition & 1 deletion src/utils/authority.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit ac4e1db

Please sign in to comment.