Commit ac4e1db3 authored by ι™ˆεΈ…'s avatar ι™ˆεΈ…

bugfix: fix test

parent 4cc44151
module.exports = {
testURL: 'http://localhost:8000',
preset: 'jest-puppeteer',
globals: {
APP_TYPE: false,
},
};
......@@ -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']);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment