sr-npm 1.7.876 → 1.7.877
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -158,15 +158,16 @@ describe('primarySearch function tests', () => {
|
|
|
158
158
|
|
|
159
159
|
await primarySearch(mockW, 'unicorn hunter',mockJobs);
|
|
160
160
|
|
|
161
|
+
|
|
161
162
|
expect(mockprimarySearchMultiBox.changeState).toHaveBeenCalledWith('noResults');
|
|
162
163
|
expect(mockprimarySearcJobResult.data).toBeNull();
|
|
163
164
|
});
|
|
164
165
|
|
|
165
166
|
it('should fill category repeater when clicking on empty primary search input', async () => {
|
|
166
167
|
const mockCategoryValues = [
|
|
167
|
-
{ _id: 'cat1', title: 'Engineering', customField: CATEGORY_CUSTOM_FIELD_ID_IN_CMS,
|
|
168
|
-
{ _id: 'cat2', title: 'Marketing', customField: CATEGORY_CUSTOM_FIELD_ID_IN_CMS,
|
|
169
|
-
{ _id: 'cat3', title: 'Sales', customField: CATEGORY_CUSTOM_FIELD_ID_IN_CMS,
|
|
168
|
+
{ _id: 'cat1', title: 'Engineering', customField: CATEGORY_CUSTOM_FIELD_ID_IN_CMS, count: 5 },
|
|
169
|
+
{ _id: 'cat2', title: 'Marketing', customField: CATEGORY_CUSTOM_FIELD_ID_IN_CMS, count: 3 },
|
|
170
|
+
{ _id: 'cat3', title: 'Sales', customField: CATEGORY_CUSTOM_FIELD_ID_IN_CMS, count: 7 }
|
|
170
171
|
];
|
|
171
172
|
|
|
172
173
|
careersMultiBoxesPage.__set__('allvaluesobjects', mockCategoryValues);
|