Improve unit test for sub-accessories component (#17372)

Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
Shijun Sun 2022-08-10 16:20:55 +08:00 committed by GitHub
parent 423647ea33
commit 4521189e5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));
},
};