mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 18:25:56 +01:00
Merge pull request #9666 from jwangyangls/fix-ut-warning
Fix a warning that appears when running the test
This commit is contained in:
commit
b0b63fdeae
@ -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