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
d3e4fa9f
Commit
d3e4fa9f
authored
Dec 10, 2020
by
Alexander Turinske
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up code
- remove unnecessary comments
parent
0d2a5230
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
ee/app/assets/javascripts/threat_monitoring/components/alerts/alert_status.vue
...ipts/threat_monitoring/components/alerts/alert_status.vue
+1
-1
ee/spec/frontend/threat_monitoring/components/alerts/alert_status_spec.js
.../threat_monitoring/components/alerts/alert_status_spec.js
+2
-5
No files found.
ee/app/assets/javascripts/threat_monitoring/components/alerts/alert_status.vue
View file @
d3e4fa9f
...
...
@@ -87,7 +87,7 @@ export default {
v-for=
"(label, field) in $options.statuses"
:key=
"field"
:active=
"field === status"
:
active-class=
"'is-active'"
active-class=
"'is-active'"
@
click=
"updateAlertStatus(field)"
>
{{
label
}}
...
...
ee/spec/frontend/threat_monitoring/components/alerts/alert_status_spec.js
View file @
d3e4fa9f
...
...
@@ -39,10 +39,8 @@ describe('AlertStatus', () => {
});
afterEach
(()
=>
{
if
(
wrapper
)
{
wrapper
.
destroy
();
wrapper
=
null
;
}
wrapper
.
destroy
();
wrapper
=
null
;
});
describe
(
'
a successful request
'
,
()
=>
{
...
...
@@ -100,7 +98,6 @@ describe('AlertStatus', () => {
await
selectFirstStatusOption
();
await
wrapper
.
vm
.
$nextTick
();
await
selectFirstStatusOption
();
// Should emit two errors [0,1]
expect
(
wrapper
.
emitted
(
'
alert-error
'
).
length
>
1
).
toBe
(
true
);
});
...
...
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