Skip to content

Conversation

@puneet0191
Copy link

@kobenguyent could you review it once, if changes needed let me, I have tested it locally


async exposeBuildLink (sessionId:string, currentConfig:any, defaultBsAuth:any) {
const res = await api.makeGetRequest(`${bsEndpoint}/automate/sessions/${sessionId}.json`, { ...defaultBsAuth });
async exposeBuildLink(sessionId, currentConfig, defaultBsAuth, helper) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add type if possible here

const res = await api.makeGetRequest(`${bsEndpoint}/automate/sessions/${sessionId}.json`, { ...defaultBsAuth });
async exposeBuildLink(sessionId, currentConfig, defaultBsAuth, helper) {
let res;
if (helper.helpers.Appium) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm thinking of a function to return the corresponding BS endpoint instead of we use if else here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants