Skip to content

Commit

Permalink
Fix support for async functions
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoABCardoso committed May 28, 2021
1 parent ff97879 commit 1926f81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Expand Up @@ -3,3 +3,9 @@
All notable changes to this project will be documented in this file. Dates are displayed in UTC.

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### 1.0.0

> 28 May 2021
- Initial commit [`ff97879`](https://github.com/MarcoABCardoso/iteration-test/commit/ff97879237e5530e38670a078f81d3d31b5c9fe9)
4 changes: 2 additions & 2 deletions lib/test-suite.js
Expand Up @@ -35,9 +35,9 @@ class TestSuite {
return generateReports(testData)
}

executeRound(options, context) {
async executeRound(options, context) {
let input = SpelExpressionEvaluator.eval(options.inputExpression, context)
let output = this.testFunction(input)
let output = await this.testFunction(input)
let valid = SpelExpressionEvaluator.eval(options.evaluateExpression, output)
if (!valid) throw `Expression [${options.evaluateExpression}] is false for obtained output ${JSON.stringify(output)}`
return output
Expand Down

0 comments on commit 1926f81

Please sign in to comment.