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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
d3257e2c
Commit
d3257e2c
authored
Apr 08, 2019
by
Winnie Hellmann
Committed by
Mike Greiling
Apr 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable ESLint rule jest/no-focused-tests
parent
746a6faa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
spec/frontend/.eslintrc.yml
spec/frontend/.eslintrc.yml
+2
-0
spec/frontend/serverless/components/functions_spec.js
spec/frontend/serverless/components/functions_spec.js
+9
-5
No files found.
spec/frontend/.eslintrc.yml
View file @
d3257e2c
...
...
@@ -12,3 +12,5 @@ globals:
loadFixtures
:
false
preloadFixtures
:
false
setFixtures
:
false
rules
:
jest/no-focused-tests
:
error
spec/frontend/serverless/components/functions_spec.js
View file @
d3257e2c
...
...
@@ -4,14 +4,21 @@ import axios from '~/lib/utils/axios_utils';
import
functionsComponent
from
'
~/serverless/components/functions.vue
'
;
import
{
createLocalVue
,
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
createStore
}
from
'
~/serverless/store
'
;
import
{
TEST_HOST
}
from
'
helpers/test_constants
'
;
import
{
mockServerlessFunctions
}
from
'
../mock_data
'
;
describe
(
'
functionsComponent
'
,
()
=>
{
const
statusPath
=
`
${
TEST_HOST
}
/statusPath`
;
let
component
;
let
store
;
let
localVue
;
let
axiosMock
;
beforeEach
(()
=>
{
axiosMock
=
new
AxiosMockAdapter
(
axios
);
axiosMock
.
onGet
(
statusPath
).
reply
(
200
);
localVue
=
createLocalVue
();
localVue
.
use
(
Vuex
);
...
...
@@ -20,6 +27,7 @@ describe('functionsComponent', () => {
afterEach
(()
=>
{
component
.
vm
.
$destroy
();
axiosMock
.
restore
();
});
it
(
'
should render empty state when Knative is not installed
'
,
()
=>
{
...
...
@@ -80,11 +88,7 @@ describe('functionsComponent', () => {
);
});
fit
(
'
should render the functions list
'
,
()
=>
{
const
statusPath
=
'
statusPath
'
;
const
axiosMock
=
new
AxiosMockAdapter
(
axios
);
axiosMock
.
onGet
(
statusPath
).
reply
(
200
);
it
(
'
should render the functions list
'
,
()
=>
{
component
=
shallowMount
(
functionsComponent
,
{
localVue
,
store
,
...
...
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