- Building Enterprise JavaScript Applications
- Daniel Li
- 57字
- 2021-07-23 16:31:19
Specifying our feature
So, let's start defining our feature by adding a name and description to spec/cucumber/features/users/create/main.feature:
Feature: Create User
Clients should be able to send a request to our API in order to create a
user. Our API should also validate the structure of the payload and respond
with an error if it is invalid.