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
419f7ecb
Commit
419f7ecb
authored
Jan 08, 2020
by
Illya Klymov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove incorrect localVue usage
localVue is required only with use method
parent
4372a6c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
ee/spec/frontend/threat_monitoring/components/app_spec.js
ee/spec/frontend/threat_monitoring/components/app_spec.js
+1
-3
ee/spec/frontend/threat_monitoring/components/threat_monitoring_filters_spec.js
...t_monitoring/components/threat_monitoring_filters_spec.js
+1
-4
No files found.
ee/spec/frontend/threat_monitoring/components/app_spec.js
View file @
419f7ecb
import
{
createLocalVue
,
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
GlAlert
,
GlEmptyState
}
from
'
@gitlab/ui
'
;
import
{
TEST_HOST
}
from
'
helpers/test_constants
'
;
import
createStore
from
'
ee/threat_monitoring/store
'
;
...
...
@@ -8,7 +8,6 @@ import WafLoadingSkeleton from 'ee/threat_monitoring/components/waf_loading_skel
import
WafStatisticsHistory
from
'
ee/threat_monitoring/components/waf_statistics_history.vue
'
;
import
WafStatisticsSummary
from
'
ee/threat_monitoring/components/waf_statistics_summary.vue
'
;
const
localVue
=
createLocalVue
();
const
defaultEnvironmentId
=
3
;
const
documentationPath
=
'
/docs
'
;
const
emptyStateSvgPath
=
'
/svgs
'
;
...
...
@@ -29,7 +28,6 @@ describe('ThreatMonitoringApp component', () => {
jest
.
spyOn
(
store
,
'
dispatch
'
).
mockImplementation
();
wrapper
=
shallowMount
(
ThreatMonitoringApp
,
{
localVue
,
propsData
,
store
,
sync
:
false
,
...
...
ee/spec/frontend/threat_monitoring/components/threat_monitoring_filters_spec.js
View file @
419f7ecb
import
{
createLocalVue
,
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
GlDropdown
,
GlDropdownItem
}
from
'
@gitlab/ui
'
;
import
createStore
from
'
ee/threat_monitoring/store
'
;
import
ThreatMonitoringFilters
from
'
ee/threat_monitoring/components/threat_monitoring_filters.vue
'
;
import
{
INVALID_CURRENT_ENVIRONMENT_NAME
}
from
'
ee/threat_monitoring/store/modules/threat_monitoring/constants
'
;
import
{
mockEnvironmentsResponse
}
from
'
../mock_data
'
;
const
localVue
=
createLocalVue
();
describe
(
'
ThreatMonitoringFilters component
'
,
()
=>
{
let
store
;
let
wrapper
;
...
...
@@ -18,7 +16,6 @@ describe('ThreatMonitoringFilters component', () => {
jest
.
spyOn
(
store
,
'
dispatch
'
).
mockImplementation
();
wrapper
=
shallowMount
(
ThreatMonitoringFilters
,
{
localVue
,
store
,
sync
:
false
,
});
...
...
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