Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
1f74f618
Commit
1f74f618
authored
Jun 29, 2020
by
jakeburden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace store dispatches with direct assignments
parent
4d7d8dde
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
spec/frontend/notes/components/note_actions_spec.js
spec/frontend/notes/components/note_actions_spec.js
+6
-7
No files found.
spec/frontend/notes/components/note_actions_spec.js
View file @
1f74f618
...
...
@@ -146,16 +146,15 @@ describe('noteActions', () => {
};
beforeEach
(()
=>
{
store
.
dispatch
(
'
setUserData
'
,
userDataMock
);
store
.
dispatch
(
'
setNoteableData
'
,
{
current_user
:
{
can_update
:
true
,
},
});
wrapper
=
shallowMountNoteActions
(
props
,
{
targetType
:
()
=>
'
issue
'
,
});
store
.
state
.
noteableData
=
{
current_user
:
{
can_update
:
true
,
},
};
store
.
state
.
userData
=
userDataMock
;
});
afterEach
(()
=>
{
...
...
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