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
58c9a083
Commit
58c9a083
authored
Apr 08, 2022
by
Vitaly Slobodin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add mock.restore for axios
parent
77e043e2
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
97 additions
and
176 deletions
+97
-176
spec/frontend/code_navigation/store/actions_spec.js
spec/frontend/code_navigation/store/actions_spec.js
+10
-11
spec/frontend/content_editor/extensions/attachment_spec.js
spec/frontend/content_editor/extensions/attachment_spec.js
+1
-3
spec/frontend/diffs/store/actions_spec.js
spec/frontend/diffs/store/actions_spec.js
+86
-162
No files found.
spec/frontend/code_navigation/store/actions_spec.js
View file @
58c9a083
...
...
@@ -107,18 +107,17 @@ describe('Code navigation actions', () => {
},
],
[],
)
.
then
(()
=>
{
expect
(
addInteractionClass
).
toHaveBeenCalledWith
({
path
:
'
index.js
'
,
d
:
{
start_line
:
0
,
start_char
:
0
,
hover
:
{
value
:
'
123
'
},
},
wrapTextNodes
,
});
).
then
(()
=>
{
expect
(
addInteractionClass
).
toHaveBeenCalledWith
({
path
:
'
index.js
'
,
d
:
{
start_line
:
0
,
start_char
:
0
,
hover
:
{
value
:
'
123
'
},
},
wrapTextNodes
,
});
});
});
});
...
...
spec/frontend/content_editor/extensions/attachment_spec.js
View file @
58c9a083
...
...
@@ -206,9 +206,7 @@ describe('content_editor/extensions/attachment', () => {
return
new
Promise
((
resolve
)
=>
{
eventHub
.
$on
(
'
alert
'
,
({
message
,
variant
})
=>
{
expect
(
variant
).
toBe
(
VARIANT_DANGER
);
expect
(
message
).
toBe
(
'
An error occurred while uploading the file. Please try again.
'
,
);
expect
(
message
).
toBe
(
'
An error occurred while uploading the file. Please try again.
'
);
resolve
();
});
});
...
...
spec/frontend/diffs/store/actions_spec.js
View file @
58c9a083
This diff is collapsed.
Click to expand it.
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