mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 02:35:17 +01:00
fix unit test
Signed-off-by: Meina Zhou <meinaz@vmware.com>
This commit is contained in:
parent
130e132f86
commit
80b8440564
@ -77,7 +77,7 @@ describe("CreateEditEndpointComponent (inline template)", () => {
|
||||
|
||||
endpointService = fixture.debugElement.injector.get(EndpointService);
|
||||
spyAdapter = spyOn(endpointService, "getAdapters").and.returnValue(
|
||||
Promise.resolve(mockAdapter)
|
||||
of(mockAdapter)
|
||||
);
|
||||
|
||||
spy = spyOn(endpointService, "getEndpoint").and.returnValue(
|
||||
|
@ -53,7 +53,7 @@ describe("CreateEditRuleComponent (inline template)", () => {
|
||||
src_namespaces: ["name1", "name2"],
|
||||
trigger: {
|
||||
kind: "Manual",
|
||||
schedule_param: null
|
||||
schedule_param: {}
|
||||
},
|
||||
filters: [],
|
||||
deletion: false
|
||||
@ -154,7 +154,7 @@ describe("CreateEditRuleComponent (inline template)", () => {
|
||||
src_registry_id: 10,
|
||||
trigger: {
|
||||
kind: "Manual",
|
||||
schedule_param: null
|
||||
schedule_param: {}
|
||||
},
|
||||
filters: [],
|
||||
deletion: false
|
||||
|
@ -143,7 +143,7 @@ describe("EndpointComponent (inline template)", () => {
|
||||
);
|
||||
|
||||
spyAdapter = spyOn(endpointService, "getAdapters").and.returnValue(
|
||||
Promise.resolve(mockAdapter)
|
||||
of(mockAdapter)
|
||||
);
|
||||
|
||||
spyOnRules = spyOn(
|
||||
|
Loading…
Reference in New Issue
Block a user