sr-npm 1.7.876 → 1.7.878

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.876",
3
+ "version": "1.7.878",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/pages/homePage.js CHANGED
@@ -66,6 +66,7 @@ function bindTeamRepeater(_$w) {
66
66
  $item('#teamButton').label = `View ${itemData.count} Open Positions`;
67
67
  console.log("itemData: ", itemData);
68
68
  $item('#teamButton').onClick(()=>{
69
+
69
70
  const department = encodeURIComponent(itemData.title);
70
71
  itemData.customField?
71
72
  location.to(`/search?category=${department}`)
@@ -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, totalJobs: 5 },
168
- { _id: 'cat2', title: 'Marketing', customField: CATEGORY_CUSTOM_FIELD_ID_IN_CMS, totalJobs: 3 },
169
- { _id: 'cat3', title: 'Sales', customField: CATEGORY_CUSTOM_FIELD_ID_IN_CMS, totalJobs: 7 }
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);