sr-npm 1.7.440 → 1.7.441

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.440",
3
+ "version": "1.7.441",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -4,24 +4,16 @@ const { getRandomPosition, executeRequestAndTest } = require('./testsUtils');
4
4
  describe('Job details fetch from SR API Tests', async () => {
5
5
 
6
6
  const templateTypes = [
7
- { templateType: 'External'},
8
- { templateType: 'Internal'}
7
+ { templatename: 'External', templateType: 'PUBLIC'},
8
+ { templatename: 'Internal', templateType: 'INTERNAL'}
9
9
  ];
10
10
 
11
- templateTypes.forEach(({ templateType }) => {
12
- describe(`Job details fetch from SR API Tests - ${templateType}`, async () => {
13
- const markTemplateAsRequestBody = `markTemplateAs${templateType}();`;
14
- try{
15
- await executeApiRequest(markTemplateAsRequestBody);
16
- }
17
- catch(error){
18
- console.error(`Error marking template as ${templateType}:`, error);
19
- throw error;
20
- }
21
- const fetchPositionsFromSRAPIRequestBody = `fetchPositionsFromSRAPI();`;
11
+ templateTypes.forEach(({ templateType ,templatename}) => {
12
+ describe(`Job details fetch from SR API Tests - ${templatename}`, async () => {
13
+ const fetchPositionsFromSRAPIRequestBody = `fetchPositionsFromSRAPI({companyId:'WixTest',templateType: '${templateType}'});`;
22
14
  const positions = await executeApiRequest(fetchPositionsFromSRAPIRequestBody);
23
15
 
24
- test(`should successfully fetch job details from SR API (${templateType})`, async () => {
16
+ test(`should successfully fetch job details from SR API (${templatename})`, async () => {
25
17
  const randomPosition = getRandomPosition(positions.data.result.content);
26
18
  expect(positions.data.result.totalFound).toBeGreaterThan(0);
27
19
  expect(positions.data.result.content.length).toBeGreaterThan(0);
@@ -32,7 +24,7 @@ describe('Job details fetch from SR API Tests', async () => {
32
24
  expect(randomPosition.department).toBeDefined();
33
25
  });
34
26
 
35
- test(`should successfully fetch job description from SR API (${templateType})`, async () => {
27
+ test(`should successfully fetch job description from SR API (${templatename})`, async () => {
36
28
  const randomPosition = getRandomPosition(positions.data.result.content);
37
29
  const fetchJobDescriptionRequestBody = `fetchJobDescription(${randomPosition.id});`;
38
30
  const jobFetchResponse = await executeApiRequest(fetchJobDescriptionRequestBody);