Skip to content

Commit e12bd99

Browse files
committed
fix(rest): be less noisy
1 parent 61edf12 commit e12bd99

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/REST.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,10 @@ export const steps: StepRunner<Record<string, any>>[] = [
9393
storeName: Type.String(),
9494
}),
9595
},
96-
async ({ match: { exp, storeName }, log: { progress }, context }) => {
96+
async ({ match: { exp, storeName }, context }) => {
9797
await currentRequest.match(async ({ body }) => {
9898
const e = jsonata(exp)
9999
const result = await e.evaluate(body)
100-
progress(result)
101100
assert.notEqual(result, undefined)
102101
context[storeName] = result
103102
})
@@ -110,14 +109,12 @@ export const steps: StepRunner<Record<string, any>>[] = [
110109
exp: Type.Optional(Type.String()),
111110
}),
112111
},
113-
async ({ step, match: { exp }, log: { progress } }) => {
112+
async ({ step, match: { exp } }) => {
113+
const expected = JSON.parse(codeBlockOrThrow(step).code)
114114
await currentRequest.match(async ({ body }) => {
115-
const expected = JSON.parse(codeBlockOrThrow(step).code)
116-
progress(expected)
117115
if (exp !== undefined) {
118116
const e = jsonata(exp)
119117
const result = await e.evaluate(body)
120-
progress(result)
121118
check(result).is(objectMatching(expected))
122119
} else {
123120
check(body).is(objectMatching(expected))

0 commit comments

Comments
 (0)