sr-npm 1.7.366 → 1.7.367
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
|
@@ -16,6 +16,16 @@ describe('Job details fetch from SR API Tests', () => {
|
|
|
16
16
|
expect(randomPosition.location).toBeDefined();
|
|
17
17
|
expect(randomPosition.department).toBeDefined();
|
|
18
18
|
});
|
|
19
|
+
|
|
20
|
+
test('should successfully fetch job description from SR API', async () => {
|
|
21
|
+
const fetchPositionsRequestBody = `fetchPositionsFromSRAPI();`;
|
|
22
|
+
const positions = await executeApiRequest(fetchPositionsRequestBody);
|
|
23
|
+
const randomPosition = getRandomPosition(positions.data.result.content);
|
|
24
|
+
const requestBody = `fetchJobDescription(${randomPosition.id});`;
|
|
25
|
+
const wixDataResponse = await executeApiRequest(requestBody);
|
|
26
|
+
console.log("wixDataResponse: ", wixDataResponse);
|
|
27
|
+
// expect(wixDataResponse.data.result.jobDescription.jobDescription.text).toBeDefined();
|
|
28
|
+
});
|
|
19
29
|
|
|
20
30
|
|
|
21
31
|
|