sr-npm 1.7.383 → 1.7.385
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.
|
@@ -34,6 +34,7 @@ async function fetchPositionsFromSRAPI() {
|
|
|
34
34
|
let page = 0;
|
|
35
35
|
const MAX_PAGES = 30 // Safety limit to prevent infinite loops
|
|
36
36
|
const companyId = await getCompanyIdFromCMS();
|
|
37
|
+
console.log('companyId = ', companyId);
|
|
37
38
|
console.log('Starting to fetch all positions with pagination...');
|
|
38
39
|
let offset=0;
|
|
39
40
|
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const { executeApiRequest } = require('tests-utils
|
|
1
|
+
const { executeApiRequest } = require('tests-utils');
|
|
2
2
|
const { getRandomPosition } = require('./testsUtils');
|
|
3
3
|
|
|
4
4
|
describe('Job details fetch from SR API Tests', () => {
|
|
@@ -10,6 +10,7 @@ describe('Job details fetch from SR API Tests', () => {
|
|
|
10
10
|
});
|
|
11
11
|
|
|
12
12
|
test('should successfully fetch job details from SR API', async () => {
|
|
13
|
+
|
|
13
14
|
const randomPosition = getRandomPosition(positions.data.result.content);
|
|
14
15
|
expect(positions.data.result.totalFound).toBeGreaterThan(0);
|
|
15
16
|
expect(positions.data.result.content.length).toBeGreaterThan(0);
|