Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
0ca3431e
Commit
0ca3431e
authored
Jun 30, 2021
by
Paul Kaplan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: fix the new test for studio removeManager edge case
parent
e66a31ab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
test/unit/redux/studio-member-actions.test.js
test/unit/redux/studio-member-actions.test.js
+3
-4
No files found.
test/unit/redux/studio-member-actions.test.js
View file @
0ca3431e
...
@@ -186,12 +186,11 @@ describe('removeManager', () => {
...
@@ -186,12 +186,11 @@ describe('removeManager', () => {
const
state
=
store
.
getState
();
const
state
=
store
.
getState
();
// Manager count should still be updated
// Manager count should still be updated
expect
(
selectStudioManagerCount
(
state
)).
toBe
(
98
);
expect
(
selectStudioManagerCount
(
state
)).
toBe
(
2
);
// The removed manager isn't the current user, so manager permission should be unchanged
// The removed manager isn't the current user, so manager permission should be unchanged
expect
(
state
.
studio
.
manager
).
toBe
(
fals
e
);
expect
(
state
.
studio
.
manager
).
toBe
(
tru
e
);
// No change to the manager items list
// No change to the manager items list
expect
(
managers
.
selector
(
state
).
items
.
length
).
toBe
(
1
);
expect
(
managers
.
selector
(
state
).
items
.
length
).
toBe
(
3
);
expect
(
managers
.
selector
(
state
).
items
[
0
].
username
).
toBe
(
'
user1
'
);
});
});
test
(
'
on error, promise rejects without any changing count or list
'
,
async
()
=>
{
test
(
'
on error, promise rejects without any changing count or list
'
,
async
()
=>
{
...
...
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