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
4e4141c4
Commit
4e4141c4
authored
Mar 13, 2020
by
Vitaly Slobodin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate ee/jobs to Jest
Closes
https://gitlab.com/gitlab-org/gitlab/-/issues/194293
parent
c943774f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
ee/spec/frontend/jobs/shared_runner_limit_block_spec.js
ee/spec/frontend/jobs/shared_runner_limit_block_spec.js
+4
-8
No files found.
ee/spec/
javascripts
/jobs/shared_runner_limit_block_spec.js
→
ee/spec/
frontend
/jobs/shared_runner_limit_block_spec.js
View file @
4e4141c4
import
component
from
'
ee/jobs/components/shared_runner_limit_block.vue
'
;
import
SharedRunnerLimitBlock
from
'
ee/jobs/components/shared_runner_limit_block.vue
'
;
import
{
createLocalVue
,
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
GlButton
}
from
'
@gitlab/ui
'
;
import
{
GlButton
}
from
'
@gitlab/ui
'
;
import
{
trimText
}
from
'
spec/helpers/text_helper
'
;
import
{
trimText
}
from
'
helpers/text_helper
'
;
const
localVue
=
createLocalVue
();
describe
(
'
Shared Runner Limit Block
'
,
()
=>
{
describe
(
'
Shared Runner Limit Block
'
,
()
=>
{
let
wrapper
;
let
wrapper
;
const
Component
=
localVue
.
extend
(
component
);
const
runnersPath
=
'
root/project/runners
'
;
const
runnersPath
=
'
root/project/runners
'
;
const
projectPath
=
'
h5bp/html5-boilerplate
'
;
const
projectPath
=
'
h5bp/html5-boilerplate
'
;
const
subscriptionsMoreMinutesUrl
=
'
https://customers.gitlab.com/buy_pipeline_minutes
'
;
const
subscriptionsMoreMinutesUrl
=
'
https://customers.gitlab.com/buy_pipeline_minutes
'
;
const
factory
=
(
options
=
{})
=>
{
const
factory
=
(
options
=
{})
=>
{
wrapper
=
shallowMount
(
Component
,
{
wrapper
=
shallowMount
(
SharedRunnerLimitBlock
,
{
localVue
,
...
options
,
...
options
,
});
});
};
};
...
...
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