Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
ac4e1db3
Commit
ac4e1db3
authored
Apr 04, 2019
by
ιεΈ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: fix test
parent
4cc44151
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
jest.config.js
jest.config.js
+3
-0
src/utils/authority.test.js
src/utils/authority.test.js
+1
-1
No files found.
jest.config.js
View file @
ac4e1db3
module
.
exports
=
{
module
.
exports
=
{
testURL
:
'
http://localhost:8000
'
,
testURL
:
'
http://localhost:8000
'
,
preset
:
'
jest-puppeteer
'
,
preset
:
'
jest-puppeteer
'
,
globals
:
{
APP_TYPE
:
false
,
},
};
};
src/utils/authority.test.js
View file @
ac4e1db3
...
@@ -2,7 +2,7 @@ import { getAuthority } from './authority';
...
@@ -2,7 +2,7 @@ import { getAuthority } from './authority';
describe
(
'
getAuthority should be strong
'
,
()
=>
{
describe
(
'
getAuthority should be strong
'
,
()
=>
{
it
(
'
empty
'
,
()
=>
{
it
(
'
empty
'
,
()
=>
{
expect
(
getAuthority
(
null
)).
toEqual
(
[
'
admin
'
]
);
// default value
expect
(
getAuthority
(
null
)).
toEqual
(
null
);
// default value
});
});
it
(
'
string
'
,
()
=>
{
it
(
'
string
'
,
()
=>
{
expect
(
getAuthority
(
'
admin
'
)).
toEqual
([
'
admin
'
]);
expect
(
getAuthority
(
'
admin
'
)).
toEqual
([
'
admin
'
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment