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
71adfb2f
Commit
71adfb2f
authored
Nov 23, 2020
by
Mark Florian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use more common createFlash name for import
parent
5174e854
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
app/assets/javascripts/vue_shared/security_reports/security_reports_app.vue
...ipts/vue_shared/security_reports/security_reports_app.vue
+2
-2
spec/frontend/vue_shared/security_reports/security_reports_app_spec.js
.../vue_shared/security_reports/security_reports_app_spec.js
+3
-3
No files found.
app/assets/javascripts/vue_shared/security_reports/security_reports_app.vue
View file @
71adfb2f
...
...
@@ -6,7 +6,7 @@ import ReportSection from '~/reports/components/report_section.vue';
import
{
LOADING
,
ERROR
,
SLOT_SUCCESS
,
SLOT_LOADING
,
SLOT_ERROR
}
from
'
~/reports/constants
'
;
import
{
s__
}
from
'
~/locale
'
;
import
{
normalizeHeaders
,
parseIntPagination
}
from
'
~/lib/utils/common_utils
'
;
import
Flash
from
'
~/flash
'
;
import
create
Flash
from
'
~/flash
'
;
import
Api
from
'
~/api
'
;
import
SecuritySummary
from
'
./components/security_summary.vue
'
;
import
store
from
'
./store
'
;
...
...
@@ -82,7 +82,7 @@ export default {
this
.
fetchCounts
();
})
.
catch
(
error
=>
{
Flash
({
create
Flash
({
message
:
this
.
$options
.
i18n
.
apiError
,
captureError
:
true
,
error
,
...
...
spec/frontend/vue_shared/security_reports/security_reports_app_spec.js
View file @
71adfb2f
...
...
@@ -9,7 +9,7 @@ import {
secretScanningDiffSuccessMock
,
}
from
'
jest/vue_shared/security_reports/mock_data
'
;
import
Api
from
'
~/api
'
;
import
Flash
from
'
~/flash
'
;
import
create
Flash
from
'
~/flash
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
{
REPORT_TYPE_SAST
,
...
...
@@ -199,8 +199,8 @@ describe('Security reports app', () => {
expect
(
wrapper
.
html
()).
toBe
(
''
);
});
it
(
'
calls Flash correctly
'
,
()
=>
{
expect
(
Flash
.
mock
.
calls
).
toEqual
([
it
(
'
calls
create
Flash correctly
'
,
()
=>
{
expect
(
create
Flash
.
mock
.
calls
).
toEqual
([
[
{
message
:
SecurityReportsApp
.
i18n
.
apiError
,
...
...
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