sr-npm 1.7.445 → 1.7.446
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/backend/secretsData.js
CHANGED
|
@@ -11,10 +11,14 @@ function getSmartToken() {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
function getCompanyId() {
|
|
14
|
+
console.log("Getting the company ID from the secrets");
|
|
14
15
|
return getSecretValue("companyID")
|
|
15
16
|
.then((secret) => {
|
|
16
17
|
return secret;
|
|
17
|
-
})
|
|
18
|
+
}).catch((error) => {
|
|
19
|
+
console.error("Error getting the company ID from the secrets: ", error);
|
|
20
|
+
throw error;
|
|
21
|
+
});
|
|
18
22
|
}
|
|
19
23
|
module.exports = {
|
|
20
24
|
getCompanyId,
|
package/package.json
CHANGED
|
@@ -30,8 +30,7 @@ describe('Job details fetch from SR API Tests', () => {
|
|
|
30
30
|
|
|
31
31
|
test(`should successfully fetch job description from SR API (${templatename})`, async () => {
|
|
32
32
|
const randomPosition = getRandomPosition(positions.data.result.content);
|
|
33
|
-
|
|
34
|
-
const fetchJobDescriptionRequestBody = `fetchJobDescription(${randomPosition.id});`;
|
|
33
|
+
const fetchJobDescriptionRequestBody = `fetchJobDescription(${randomPosition.id},{companyId:'WixTest',templateType: '${templateType}'});`;
|
|
35
34
|
const jobFetchResponse = await executeApiRequest(fetchJobDescriptionRequestBody);
|
|
36
35
|
expect(jobFetchResponse.data.result.id).toBe(randomPosition.id);
|
|
37
36
|
expect(jobFetchResponse.data.result.jobAd.sections.jobDescription).toBeDefined();
|