Commit 2b441a7e authored by AllForNothing's avatar AllForNothing
Browse files

Improve UI UT for artifact list page


Signed-off-by: default avatarAllForNothing <sshijun@vmware.com>
parent eb317fb8
......@@ -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: mockNewArtifactService },
{ provide: ProjectService, useClass: ProjectDefaultService },
{ provide: ScanningResultService, useClass: ScanningResultDefaultService },
{ provide: LabelService, useClass: LabelDefaultService },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment