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
74a00ae1
Commit
74a00ae1
authored
Dec 23, 2020
by
Illya Klymov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace invoking `is` with string
`is` is deprecated in `@vue/test-utils` 1.x
parent
5dc5bd3b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
spec/frontend/vue_mr_widget/components/mr_widget_icon_spec.js
.../frontend/vue_mr_widget/components/mr_widget_icon_spec.js
+1
-1
spec/frontend/vue_shared/components/actions_button_spec.js
spec/frontend/vue_shared/components/actions_button_spec.js
+2
-2
No files found.
spec/frontend/vue_mr_widget/components/mr_widget_icon_spec.js
View file @
74a00ae1
...
...
@@ -20,7 +20,7 @@ describe('MrWidgetIcon', () => {
});
it
(
'
renders icon and container
'
,
()
=>
{
expect
(
wrapper
.
is
(
'
.circle-icon-container
'
)).
toBe
(
true
);
expect
(
wrapper
.
element
.
className
).
toContain
(
'
circle-icon-container
'
);
expect
(
wrapper
.
find
(
GlIcon
).
props
(
'
name
'
)).
toEqual
(
TEST_ICON
);
});
});
spec/frontend/vue_shared/components/actions_button_spec.js
View file @
74a00ae1
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
GlDropdown
,
GlButton
}
from
'
@gitlab/ui
'
;
import
{
GlDropdown
,
Gl
DropdownDivider
,
Gl
Button
}
from
'
@gitlab/ui
'
;
import
{
createMockDirective
,
getBinding
}
from
'
helpers/vue_mock_directive
'
;
import
ActionsButton
from
'
~/vue_shared/components/actions_button.vue
'
;
...
...
@@ -53,7 +53,7 @@ describe('Actions button component', () => {
findDropdown
()
.
findAll
(
'
gl-dropdown-item-stub,gl-dropdown-divider-stub
'
)
.
wrappers
.
map
((
x
)
=>
{
if
(
x
.
is
(
'
gl-dropdown-divider-stub
'
))
{
if
(
x
.
is
(
GlDropdownDivider
))
{
return
{
type
:
'
divider
'
};
}
...
...
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