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
e5e9cccc
Commit
e5e9cccc
authored
Apr 25, 2020
by
Jackie Fraser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move ee vue_mr_widget approvals_auth_spec to Jest
parent
dddc9382
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
ee/spec/frontend/vue_mr_widget/components/approvals/approvals_auth_spec.js
...vue_mr_widget/components/approvals/approvals_auth_spec.js
+4
-8
No files found.
ee/spec/
javascripts
/vue_mr_widget/components/approvals/approvals_auth_spec.js
→
ee/spec/
frontend
/vue_mr_widget/components/approvals/approvals_auth_spec.js
View file @
e5e9cccc
import
{
createLocalVue
,
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
GlModal
}
from
'
@gitlab/ui
'
;
import
ApprovalsAuth
from
'
ee/vue_merge_request_widget/components/approvals/approvals_auth.vue
'
;
const
TEST_PASSWORD
=
'
password
'
;
const
localVue
=
createLocalVue
();
// For some reason, the `localVue.nextTick` needs to be deferred
// For some reason, the `Promise.resolve` needs to be deferred
// or the timing doesn't work.
const
tick
=
()
=>
Promise
.
resolve
().
then
(
localVue
.
nextTick
);
const
waitForTick
=
done
=>
tick
()
Promise
.
resolve
()
.
then
(
done
)
.
catch
(
done
.
fail
);
...
...
@@ -18,12 +15,11 @@ describe('Approval auth component', () => {
let
wrapper
;
const
createComponent
=
(
props
=
{})
=>
{
wrapper
=
shallowMount
(
localVue
.
extend
(
ApprovalsAuth
)
,
{
wrapper
=
shallowMount
(
ApprovalsAuth
,
{
propsData
:
{
...
props
,
modalId
:
'
testid
'
,
},
localVue
,
});
};
...
...
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