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
a6b496ec
Commit
a6b496ec
authored
Aug 17, 2020
by
NataliaTepluhina
Committed by
Jose Vargas
Aug 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed tests for router replace
parent
86c680a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
spec/frontend/design_management/pages/index_spec.js
spec/frontend/design_management/pages/index_spec.js
+4
-12
No files found.
spec/frontend/design_management/pages/index_spec.js
View file @
a6b496ec
...
...
@@ -30,7 +30,7 @@ const scrollIntoViewMock = jest.fn();
HTMLElement
.
prototype
.
scrollIntoView
=
scrollIntoViewMock
;
const
localVue
=
createLocalVue
();
cons
t
router
=
createRouter
();
le
t
router
=
createRouter
();
localVue
.
use
(
VueRouter
);
const
mockDesigns
=
[
...
...
@@ -478,16 +478,15 @@ describe('Design management index page', () => {
describe
(
'
on non-latest version
'
,
()
=>
{
beforeEach
(()
=>
{
createComponent
({
designs
:
mockDesigns
,
allVersions
:
[
mockVersion
]
});
});
router
.
replace
({
it
(
'
does not render design checkboxes
'
,
async
()
=>
{
await
router
.
replace
({
name
:
DESIGNS_ROUTE_NAME
,
query
:
{
version
:
'
2
'
,
},
});
});
it
(
'
does not render design checkboxes
'
,
()
=>
{
expect
(
findDesignCheckboxes
()).
toHaveLength
(
0
);
});
...
...
@@ -514,13 +513,6 @@ describe('Design management index page', () => {
files
:
[{
name
:
'
image.png
'
,
type
:
'
image/png
'
}],
getData
:
()
=>
'
test.png
'
,
};
router
.
replace
({
name
:
DESIGNS_ROUTE_NAME
,
query
:
{
version
:
'
2
'
,
},
});
});
it
(
'
does not call paste event if designs wrapper is not hovered
'
,
()
=>
{
...
...
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