Skip to content

Commit

Permalink
Clarify OIS processing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Siegrift committed Mar 27, 2024
1 parent 0235bdd commit 7d261b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ois.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ describe('API call skip validation', () => {
ois.endpoints[0].preProcessingSpecificationV2 = {
environment: 'Node',
timeoutMs: 5000,
value: 'output = input;',
value: '({ response }) => { return { response: Math.round(Math.random() * 1000); }',
};

expect(() => oisSchema.parse(ois)).not.toThrow();
Expand All @@ -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();
Expand Down

0 comments on commit 7d261b7

Please sign in to comment.