1
0
cucumber-js-demo/async/features/steps/async.js

10 lines
255 B
JavaScript
Raw Permalink Normal View History

2018-11-10 20:06:38 +01:00
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
})