Add code
This commit is contained in:
9
async/features/steps/async.js
Normal file
9
async/features/steps/async.js
Normal file
@@ -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
|
||||
})
|
Reference in New Issue
Block a user