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
8d2a8a43
Commit
8d2a8a43
authored
Nov 20, 2019
by
Paul Gascou-Vaillancourt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make approvals specs compatible w/ BootstrapVue 2
parent
35425750
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
ee/spec/frontend/approvals/components/approval_check_popover_spec.js
...ntend/approvals/components/approval_check_popover_spec.js
+6
-5
No files found.
ee/spec/frontend/approvals/components/approval_check_popover_spec.js
View file @
8d2a8a43
import
Vue
from
'
vue
'
;
import
{
m
ount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
{
GlPopover
}
from
'
@gitlab/ui
'
;
import
{
shallowM
ount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
{
GlPopover
,
GlLink
}
from
'
@gitlab/ui
'
;
import
{
TEST_HOST
}
from
'
helpers/test_constants
'
;
import
component
from
'
ee/approvals/components/approval_check_popover.vue
'
;
...
...
@@ -9,12 +9,13 @@ describe('Approval Check Popover', () => {
beforeEach
(()
=>
{
const
localVue
=
createLocalVue
();
wrapper
=
m
ount
(
component
,
{
wrapper
=
shallowM
ount
(
component
,
{
localVue
,
propsData
:
{
title
:
'
Title
'
,
},
sync
:
false
,
attachToDocument
:
true
,
});
});
...
...
@@ -31,7 +32,7 @@ describe('Approval Check Popover', () => {
expect
(
wrapper
.
find
(
GlPopover
)
.
find
(
'
a
'
)
.
find
(
GlLink
)
.
attributes
(
'
href
'
),
).
toBe
(
documentationLink
);
});
...
...
@@ -42,7 +43,7 @@ describe('Approval Check Popover', () => {
expect
(
wrapper
.
find
(
GlPopover
)
.
find
(
'
a
'
)
.
find
(
GlLink
)
.
exists
(),
).
toBeFalsy
();
});
...
...
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