mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-25 18:18:04 +01:00
Merge pull request #12814 from AllForNothing/ui-ut
Improve UI UT for artifact list page
This commit is contained in:
commit
c35a39d432
@ -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 },
|
||||
|
Loading…
Reference in New Issue
Block a user