Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 2x 2x 2x 7x 7x 33x 7x 7x | import { CustomerVariableProvider, CustomerVariablesRecord, CustomerVariableType, } from '../../../utils/customer-variables/types' import { CustomerVariables } from '../../../utils/customer-variables/customer-variables' export function getInMemoryCustomerVariables() { const variables: CustomerVariablesRecord = { [CustomerVariableType.AgentDownloadPath]: 'download', [CustomerVariableType.PreSharedSecret]: 'secret', [CustomerVariableType.GetResultPath]: 'result', [CustomerVariableType.FpCdnUrl]: 'fpcdn.io', [CustomerVariableType.FpIngressBaseHost]: 'api.fpjs.io', } const provider: CustomerVariableProvider = { name: 'test provider', getVariable: async (variable) => variables[variable], } const customerVariables = new CustomerVariables([provider]) return { variables, customerVariables } } |