diff --git a/src/ois.test.ts b/src/ois.test.ts index ef96ac8..a4c9815 100644 --- a/src/ois.test.ts +++ b/src/ois.test.ts @@ -714,7 +714,7 @@ describe('API call skip validation', () => { ois.endpoints[0].preProcessingSpecificationV2 = { environment: 'Node', timeoutMs: 5000, - value: 'output = input;', + value: "({ endpointParameters }) => { return { endpointParameters: {...endpointParameters, from: 'ETH'} }; }", }; expect(() => oisSchema.parse(ois)).not.toThrow(); @@ -727,7 +727,7 @@ describe('API call skip validation', () => { ois.endpoints[0].postProcessingSpecificationV2 = { environment: 'Node', timeoutMs: 5000, - value: 'output = input;', + value: '({ response }) => { return { response: Math.round(Math.random() * 1000) } }', }; expect(() => oisSchema.parse(ois)).not.toThrow();