mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-22 16:48:30 +01:00
Fix a warning that appears when running the test
Signed-off-by: Yogi_Wang <yawang@vmware.com>
This commit is contained in:
parent
b964d0411b
commit
7aa47f8450
@ -8,7 +8,7 @@
|
||||
[class.clr-form-compact-common]="!defaultTextsObj.isSystemDefaultQuota">
|
||||
|
||||
<clr-input-container>
|
||||
<label class="left-label required" for="storage">{{ defaultTextsObj?.storageQuota | translate}}
|
||||
<label class="left-label required" for="storage">{{ defaultTextsObj?.countQuota | translate}}
|
||||
<clr-tooltip>
|
||||
<clr-icon clrTooltipTrigger shape="info-circle" size="24"></clr-icon>
|
||||
<clr-tooltip-content clrPosition="top-right" clrSize="lg" *clrIfOpen>
|
||||
@ -33,7 +33,7 @@
|
||||
</clr-input-container>
|
||||
|
||||
<clr-input-container>
|
||||
<label for="count" class="left-label required">{{ defaultTextsObj.countQuota | translate}}
|
||||
<label for="count" class="left-label required">{{ defaultTextsObj.storageQuota | translate}}
|
||||
<clr-tooltip>
|
||||
<clr-icon clrTooltipTrigger shape="info-circle" size="24"></clr-icon>
|
||||
<clr-tooltip-content clrPosition="top-right" clrSize="lg" *clrIfOpen>
|
||||
|
@ -201,6 +201,8 @@ describe('ImmutableTagComponent', () => {
|
||||
cloneRule.tag_selectors[0].pattern = 'rep';
|
||||
let cloneRuleNoId = clone(mockRules[0]);
|
||||
cloneRuleNoId.id = null;
|
||||
let cloneDisableRule = clone(mockRules[0]);
|
||||
cloneDisableRule.disabled = true;
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ImmutableTagComponent, AddRuleComponent, InlineAlertComponent],
|
||||
@ -265,6 +267,8 @@ describe('ImmutableTagComponent', () => {
|
||||
.withArgs(component.projectId, mockRules[0])
|
||||
.and.returnValue(of(null))
|
||||
.withArgs(component.projectId, cloneRule)
|
||||
.and.returnValue(of(null))
|
||||
.withArgs(component.projectId, cloneDisableRule)
|
||||
.and.returnValue(of(null));
|
||||
spyOn(immutableTagService, "deleteRule")
|
||||
.withArgs(component.projectId, mockRules[3].id)
|
||||
|
Loading…
Reference in New Issue
Block a user