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
605e6154
Commit
605e6154
authored
Jan 23, 2018
by
Winnie Hellmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use restore() instead of reset() for removing axios MockAdapter
parent
ba1c613d
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
25 additions
and
25 deletions
+25
-25
doc/development/fe_guide/axios.md
doc/development/fe_guide/axios.md
+1
-1
spec/javascripts/blob/notebook/index_spec.js
spec/javascripts/blob/notebook/index_spec.js
+3
-3
spec/javascripts/boards/board_card_spec.js
spec/javascripts/boards/board_card_spec.js
+1
-1
spec/javascripts/boards/board_list_spec.js
spec/javascripts/boards/board_list_spec.js
+1
-1
spec/javascripts/boards/board_new_issue_spec.js
spec/javascripts/boards/board_new_issue_spec.js
+1
-1
spec/javascripts/boards/boards_store_spec.js
spec/javascripts/boards/boards_store_spec.js
+1
-1
spec/javascripts/boards/list_spec.js
spec/javascripts/boards/list_spec.js
+1
-1
spec/javascripts/epics/epic_show/components/epic_show_app_spec.js
...ascripts/epics/epic_show/components/epic_show_app_spec.js
+1
-1
spec/javascripts/issue_show/components/app_spec.js
spec/javascripts/issue_show/components/app_spec.js
+1
-1
spec/javascripts/monitoring/dashboard_spec.js
spec/javascripts/monitoring/dashboard_spec.js
+1
-1
spec/javascripts/vue_mr_widget/ee_mr_widget_options_spec.js
spec/javascripts/vue_mr_widget/ee_mr_widget_options_spec.js
+13
-13
No files found.
doc/development/fe_guide/axios.md
View file @
605e6154
...
...
@@ -50,7 +50,7 @@ To help us mock the responses we need we use [axios-mock-adapter][axios-mock-ada
});
afterEach
(()
=>
{
mock
.
res
et
();
mock
.
res
tore
();
});
```
...
...
spec/javascripts/blob/notebook/index_spec.js
View file @
605e6154
...
...
@@ -45,7 +45,7 @@ describe('iPython notebook renderer', () => {
});
afterEach
(()
=>
{
mock
.
res
et
();
mock
.
res
tore
();
});
it
(
'
does not show loading icon
'
,
()
=>
{
...
...
@@ -96,7 +96,7 @@ describe('iPython notebook renderer', () => {
});
afterEach
(()
=>
{
mock
.
res
et
();
mock
.
res
tore
();
});
it
(
'
does not show loading icon
'
,
()
=>
{
...
...
@@ -127,7 +127,7 @@ describe('iPython notebook renderer', () => {
});
afterEach
(()
=>
{
mock
.
res
et
();
mock
.
res
tore
();
});
it
(
'
does not show loading icon
'
,
()
=>
{
...
...
spec/javascripts/boards/board_card_spec.js
View file @
605e6154
...
...
@@ -55,7 +55,7 @@ describe('Board card', () => {
});
afterEach
(()
=>
{
mock
.
res
et
();
mock
.
res
tore
();
});
it
(
'
returns false when detailIssue is empty
'
,
()
=>
{
...
...
spec/javascripts/boards/board_list_spec.js
View file @
605e6154
...
...
@@ -60,7 +60,7 @@ describe('Board list component', () => {
});
afterEach
(()
=>
{
mock
.
res
et
();
mock
.
res
tore
();
});
it
(
'
renders component
'
,
()
=>
{
...
...
spec/javascripts/boards/board_new_issue_spec.js
View file @
605e6154
...
...
@@ -58,7 +58,7 @@ describe('Issue boards new issue form', () => {
afterEach
(()
=>
{
vm
.
$destroy
();
mock
.
res
et
();
mock
.
res
tore
();
});
it
(
'
calls submit if submit button is clicked
'
,
(
done
)
=>
{
...
...
spec/javascripts/boards/boards_store_spec.js
View file @
605e6154
...
...
@@ -34,7 +34,7 @@ describe('Store', () => {
});
afterEach
(()
=>
{
mock
.
res
et
();
mock
.
res
tore
();
});
it
(
'
starts with a blank state
'
,
()
=>
{
...
...
spec/javascripts/boards/list_spec.js
View file @
605e6154
...
...
@@ -30,7 +30,7 @@ describe('List model', () => {
});
afterEach
(()
=>
{
mock
.
res
et
();
mock
.
res
tore
();
});
it
(
'
gets issues when created
'
,
(
done
)
=>
{
...
...
spec/javascripts/epics/epic_show/components/epic_show_app_spec.js
View file @
605e6154
...
...
@@ -78,7 +78,7 @@ describe('EpicShowApp', () => {
});
afterEach
(()
=>
{
mock
.
res
et
();
mock
.
res
tore
();
});
it
(
'
should render epic-header
'
,
()
=>
{
...
...
spec/javascripts/issue_show/components/app_spec.js
View file @
605e6154
...
...
@@ -59,7 +59,7 @@ describe('Issuable output', () => {
});
afterEach
(()
=>
{
mock
.
res
et
();
mock
.
res
tore
();
realtimeRequestCount
=
0
;
vm
.
poll
.
stop
();
...
...
spec/javascripts/monitoring/dashboard_spec.js
View file @
605e6154
...
...
@@ -38,7 +38,7 @@ describe('Dashboard', () => {
});
afterEach
(()
=>
{
mock
.
res
et
();
mock
.
res
tore
();
});
it
(
'
shows up a loading state
'
,
(
done
)
=>
{
...
...
spec/javascripts/vue_mr_widget/ee_mr_widget_options_spec.js
View file @
605e6154
...
...
@@ -64,7 +64,7 @@ describe('ee merge request widget options', () => {
});
afterEach
(()
=>
{
mock
.
res
et
();
mock
.
res
tore
();
});
it
(
'
should render provided data
'
,
(
done
)
=>
{
...
...
@@ -87,7 +87,7 @@ describe('ee merge request widget options', () => {
});
afterEach
(()
=>
{
mock
.
res
et
();
mock
.
res
tore
();
});
it
(
'
should render provided data
'
,
(
done
)
=>
{
...
...
@@ -110,7 +110,7 @@ describe('ee merge request widget options', () => {
});
afterEach
(()
=>
{
mock
.
res
et
();
mock
.
res
tore
();
});
it
(
'
should render error indicator
'
,
(
done
)
=>
{
...
...
@@ -158,7 +158,7 @@ describe('ee merge request widget options', () => {
});
afterEach
(()
=>
{
mock
.
res
et
();
mock
.
res
tore
();
});
it
(
'
should render provided data
'
,
(
done
)
=>
{
...
...
@@ -209,7 +209,7 @@ describe('ee merge request widget options', () => {
});
afterEach
(()
=>
{
mock
.
res
et
();
mock
.
res
tore
();
});
it
(
'
should render provided data
'
,
(
done
)
=>
{
...
...
@@ -233,7 +233,7 @@ describe('ee merge request widget options', () => {
});
afterEach
(()
=>
{
mock
.
res
et
();
mock
.
res
tore
();
});
it
(
'
should render error indicator
'
,
(
done
)
=>
{
...
...
@@ -279,7 +279,7 @@ describe('ee merge request widget options', () => {
});
afterEach
(()
=>
{
mock
.
res
et
();
mock
.
res
tore
();
});
it
(
'
should render provided data
'
,
(
done
)
=>
{
...
...
@@ -331,7 +331,7 @@ describe('ee merge request widget options', () => {
});
afterEach
(()
=>
{
mock
.
res
et
();
mock
.
res
tore
();
});
it
(
'
should render provided data
'
,
(
done
)
=>
{
...
...
@@ -355,7 +355,7 @@ describe('ee merge request widget options', () => {
});
afterEach
(()
=>
{
mock
.
res
et
();
mock
.
res
tore
();
});
it
(
'
should render error indicator
'
,
(
done
)
=>
{
...
...
@@ -401,7 +401,7 @@ describe('ee merge request widget options', () => {
});
afterEach
(()
=>
{
mock
.
res
et
();
mock
.
res
tore
();
});
it
(
'
should render provided data
'
,
(
done
)
=>
{
...
...
@@ -440,7 +440,7 @@ describe('ee merge request widget options', () => {
});
afterEach
(()
=>
{
mock
.
res
et
();
mock
.
res
tore
();
});
it
(
'
should render error indicator
'
,
(
done
)
=>
{
...
...
@@ -487,7 +487,7 @@ describe('ee merge request widget options', () => {
});
afterEach
(()
=>
{
mock
.
res
et
();
mock
.
res
tore
();
});
it
(
'
should render provided data
'
,
(
done
)
=>
{
...
...
@@ -518,7 +518,7 @@ describe('ee merge request widget options', () => {
});
afterEach
(()
=>
{
mock
.
res
et
();
mock
.
res
tore
();
});
it
(
'
should render error indicator
'
,
(
done
)
=>
{
...
...
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