Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CSAN
Csan
Commits
2b441a7e
Commit
2b441a7e
authored
Aug 19, 2020
by
AllForNothing
Browse files
Improve UI UT for artifact list page
Signed-off-by:
AllForNothing
<
sshijun@vmware.com
>
parent
eb317fb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/portal/src/app/project/repository/artifact-list-page/artifact-list/artifact-list-tab/artifact-list-tab.component.spec.ts
...ist/artifact-list-tab/artifact-list-tab.component.spec.ts
+6
-1
No files found.
src/portal/src/app/project/repository/artifact-list-page/artifact-list/artifact-list-tab/artifact-list-tab.component.spec.ts
View file @
2b441a7e
...
...
@@ -267,6 +267,11 @@ describe("ArtifactListTabComponent (inline template)", () => {
}
};
const
mockNewArtifactService
=
{
TriggerArtifactChan
$
:
{
subscribe
:
(
fn
)
=>
{
}
},
listArtifactsResponse
:
()
=>
{
if
(
filtereName
===
'
sha256:3e33e3e3
'
)
{
return
of
(
...
...
@@ -314,7 +319,7 @@ describe("ArtifactListTabComponent (inline template)", () => {
ArtifactDefaultService
,
{
provide
:
Router
,
useValue
:
mockRouter
},
{
provide
:
SERVICE_CONFIG
,
useValue
:
config
},
{
provide
:
ArtifactService
,
useValue
:
mockArtifactService
},
{
provide
:
ArtifactService
,
useValue
:
mock
New
ArtifactService
},
{
provide
:
ProjectService
,
useClass
:
ProjectDefaultService
},
{
provide
:
ScanningResultService
,
useClass
:
ScanningResultDefaultService
},
{
provide
:
LabelService
,
useClass
:
LabelDefaultService
},
...
...
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