mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-24 17:47:46 +01:00
Fix UT bug for scanner component
Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
parent
407417ce7b
commit
d3da8776ff
@ -17,14 +17,16 @@ describe('ScannerComponent', () => {
|
|||||||
name: 'test1',
|
name: 'test1',
|
||||||
description: 'just a sample',
|
description: 'just a sample',
|
||||||
version: '1.0.0',
|
version: '1.0.0',
|
||||||
url: 'http://168.0.0.1'
|
url: 'http://168.0.0.1',
|
||||||
|
health: 'healthy'
|
||||||
};
|
};
|
||||||
const mockScanner2: Scanner = {
|
const mockScanner2: Scanner = {
|
||||||
uuid: 'def',
|
uuid: 'def',
|
||||||
name: 'test2',
|
name: 'test2',
|
||||||
description: 'just a sample',
|
description: 'just a sample',
|
||||||
version: '2.0.0',
|
version: '2.0.0',
|
||||||
url: 'http://168.0.0.2'
|
url: 'http://168.0.0.2',
|
||||||
|
health: 'healthy'
|
||||||
};
|
};
|
||||||
let component: ScannerComponent;
|
let component: ScannerComponent;
|
||||||
let fixture: ComponentFixture<ScannerComponent>;
|
let fixture: ComponentFixture<ScannerComponent>;
|
||||||
|
Loading…
Reference in New Issue
Block a user