mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-4985] Resolved linting and unit test issues
This commit is contained in:
committed by
Jatin_Chugh
parent
a00375ad10
commit
68047e4f1e
+3
-3
@@ -57,7 +57,7 @@ describe('SearchFilterTabbedComponent', () => {
|
|||||||
testField2: 'Field 2',
|
testField2: 'Field 2',
|
||||||
testField3: 'Field 3'
|
testField3: 'Field 3'
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
component.valuesToDisplay = {
|
component.valuesToDisplay = {
|
||||||
testField1: 'test-display-value-1',
|
testField1: 'test-display-value-1',
|
||||||
testField2: 'test-display-value-2',
|
testField2: 'test-display-value-2',
|
||||||
@@ -76,13 +76,13 @@ describe('SearchFilterTabbedComponent', () => {
|
|||||||
testField2: 'Field 2',
|
testField2: 'Field 2',
|
||||||
testField3: 'Field 3'
|
testField3: 'Field 3'
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
const displayedLabelsMap = {
|
const displayedLabelsMap = {
|
||||||
testField1: 'Field 1',
|
testField1: 'Field 1',
|
||||||
testField2: 'Field 2',
|
testField2: 'Field 2',
|
||||||
testField3: 'Field 3'
|
testField3: 'Field 3'
|
||||||
}
|
};
|
||||||
expect(component.displayedLabelsByFieldTranslated.emit).toHaveBeenCalledWith(displayedLabelsMap);
|
expect(component.displayedLabelsByFieldTranslated.emit).toHaveBeenCalledWith(displayedLabelsMap);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user