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
f246c452
Commit
f246c452
authored
May 17, 2021
by
Coung Ngo
Committed by
Alexander Turinske
May 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply 2 suggestion(s) to 2 file(s)
parent
151725fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ee/spec/frontend/threat_monitoring/components/alerts/alert_drawer_spec.js
.../threat_monitoring/components/alerts/alert_drawer_spec.js
+1
-1
spec/frontend/vue_shared/alert_details/sidebar/alert_sidebar_status_spec.js
...shared/alert_details/sidebar/alert_sidebar_status_spec.js
+1
-1
No files found.
ee/spec/frontend/threat_monitoring/components/alerts/alert_drawer_spec.js
View file @
f246c452
...
@@ -163,7 +163,7 @@ describe('Alert Drawer', () => {
...
@@ -163,7 +163,7 @@ describe('Alert Drawer', () => {
});
});
});
});
it
(
'
handles an alert status update
'
,
async
()
=>
{
it
(
'
handles an alert status update
'
,
()
=>
{
createWrapper
({
props
:
{
selectedAlert
:
mockAlerts
[
0
]
}
});
createWrapper
({
props
:
{
selectedAlert
:
mockAlerts
[
0
]
}
});
expect
(
wrapper
.
emitted
(
'
alert-update
'
)).
toBeUndefined
();
expect
(
wrapper
.
emitted
(
'
alert-update
'
)).
toBeUndefined
();
findStatus
().
vm
.
$emit
(
'
alert-update
'
);
findStatus
().
vm
.
$emit
(
'
alert-update
'
);
...
...
spec/frontend/vue_shared/alert_details/sidebar/alert_sidebar_status_spec.js
View file @
f246c452
...
@@ -121,7 +121,7 @@ describe('Alert Details Sidebar Status', () => {
...
@@ -121,7 +121,7 @@ describe('Alert Details Sidebar Status', () => {
expect
(
findStatus
().
text
()).
toBe
(
'
Triggered
'
);
expect
(
findStatus
().
text
()).
toBe
(
'
Triggered
'
);
});
});
it
(
'
emits "alert-update" when the status has been updated
'
,
async
()
=>
{
it
(
'
emits "alert-update" when the status has been updated
'
,
()
=>
{
mountComponent
({
sidebarCollapsed
:
false
});
mountComponent
({
sidebarCollapsed
:
false
});
expect
(
wrapper
.
emitted
(
'
alert-update
'
)).
toBeUndefined
();
expect
(
wrapper
.
emitted
(
'
alert-update
'
)).
toBeUndefined
();
findAlertStatus
().
vm
.
$emit
(
'
handle-updating
'
);
findAlertStatus
().
vm
.
$emit
(
'
handle-updating
'
);
...
...
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