From 738f4f2bdb7228b8f2f9bd74979adf361cf1b293 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Fri, 20 Dec 2024 15:03:16 +0100 Subject: Switch to ESM --- async/features/steps/async.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'async/features/steps/async.js') diff --git a/async/features/steps/async.js b/async/features/steps/async.js index 5642862..68e130d 100644 --- a/async/features/steps/async.js +++ b/async/features/steps/async.js @@ -4,6 +4,9 @@ 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 + const firstResponse = await axios.request(url) + this.first = firstResponse.data + + const secondResponse = await axios.request(url) + this.second = secondResponse.data }) -- cgit v1.2.3