blob: 68e130dccdae3ec70d487ceb82b2bb1ffebf6842 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import { When } from '@cucumber/cucumber'
import axios from 'axios'
When('I request the same resource twice', async function () {
const url = 'http://localhost:8080/'
const firstResponse = await axios.request(url)
this.first = firstResponse.data
const secondResponse = await axios.request(url)
this.second = secondResponse.data
})
|