September 2018
Intermediate to advanced
764 pages
20h 6m
English
For the first call to our server, we have broken it down into three steps:
In the first step, we will create a new request object and save it as a file-scoped variable, making it available to be accessed by subsequent steps. In the second, we will attach an empty payload to the request; however, this is already the default behavior of superagent, so we can simply return from the function without doing anything. In the third step, we will send the request and save the response in another variable.
You should now update the start of your spec/cucumber/steps/index.js file to the following snippet:
import superagent ...
Read now
Unlock full access