mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-04 05:51:22 +01:00
Improve unit test for sub-accessories component (#17372)
Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
parent
423647ea33
commit
4521189e5e
@ -9,6 +9,7 @@ import {
|
||||
ArtifactDefaultService,
|
||||
ArtifactService,
|
||||
} from '../../../../artifact.service';
|
||||
import { delay } from 'rxjs';
|
||||
|
||||
describe('SubAccessoriesComponent', () => {
|
||||
const mockedAccessories: Accessory[] = [
|
||||
@ -61,7 +62,7 @@ describe('SubAccessoriesComponent', () => {
|
||||
|
||||
const mockedArtifactService = {
|
||||
listAccessories() {
|
||||
return of(page2);
|
||||
return of(page2).pipe(delay(0));
|
||||
},
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user