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
7c40a175
Commit
7c40a175
authored
Jan 28, 2021
by
Kev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace bv::show::modal with constant in test name
parent
396dec4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ee/spec/frontend/geo_nodes/components/app_spec.js
ee/spec/frontend/geo_nodes/components/app_spec.js
+3
-3
No files found.
ee/spec/frontend/geo_nodes/components/app_spec.js
View file @
7c40a175
...
...
@@ -399,7 +399,7 @@ describe('AppComponent', () => {
expect
(
vm
.
modalTitle
).
toBe
(
modalTitle
);
});
it
(
'
emits `bv::show::modal` when actionType is `toggle` and node is enabled
'
,
()
=>
{
it
(
`emits
${
BV_SHOW_MODAL
}
when actionType is "toggle" and node is enabled`
,
()
=>
{
node
.
enabled
=
true
;
vm
.
showNodeActionModal
({
actionType
:
NODE_ACTIONS
.
TOGGLE
,
...
...
@@ -429,7 +429,7 @@ describe('AppComponent', () => {
expect
(
vm
.
toggleNode
).
toHaveBeenCalledWith
(
vm
.
targetNode
);
});
it
(
'
emits `bv::show::modal` when actionType is not `toggle`
'
,
()
=>
{
it
(
`emits
${
BV_SHOW_MODAL
}
when actionType is not "toggle"`
,
()
=>
{
node
.
enabled
=
true
;
vm
.
showNodeActionModal
({
actionType
:
NODE_ACTIONS
.
REMOVE
,
...
...
@@ -444,7 +444,7 @@ describe('AppComponent', () => {
});
describe
(
'
hideNodeActionModal
'
,
()
=>
{
it
(
'
emits `bv::hide::modal`
'
,
()
=>
{
it
(
`emits
${
BV_HIDE_MODAL
}
`
,
()
=>
{
const
rootEmit
=
jest
.
spyOn
(
vm
.
$root
,
'
$emit
'
);
vm
.
hideNodeActionModal
();
...
...
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