MCPcopy Create free account
hub / github.com/AutoCodeStack/ios-device-farm / getEndpoint

Function getEndpoint

src/modules/wda-control/wda-endpoints.ts:17–25  ·  view source on GitHub ↗
(endpoint: WdaEndpoints, params?: Record<string, string>)

Source from the content-addressed store, hash-verified

15}
16
17export const getEndpoint = (endpoint: WdaEndpoints, params?: Record<string, string>): string => {
18 let endpointStr = endpoint as string;
19 if (params) {
20 Object.keys(params).forEach((key) => {
21 endpointStr = endpointStr.replace(`:${key}`, params[key]);
22 });
23 }
24 return endpointStr;
25};

Callers 1

WdaServiceClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected