diff options
Diffstat (limited to 'async/features/steps/async.js')
| -rw-r--r-- | async/features/steps/async.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/async/features/steps/async.js b/async/features/steps/async.js new file mode 100644 index 0000000..ea88856 --- /dev/null +++ b/async/features/steps/async.js @@ -0,0 +1,9 @@ +import { When } from 'cucumber' +import axios from 'axios' + +When('I request the same resource twice', async function () { + const url = 'http://localhost:8080/' + + this.first = await axios.request(url).data + this.second = await axios.request(url).data +}) |
