FormidableLabs / yesno

Simple HTTP testing for NodeJS
MIT License
88 stars 6 forks source link

Feature: Implement yesno.mockRule().respond() #89

Open keithcom opened 4 years ago

keithcom commented 4 years ago

Add a respond method to the yesno Rules class. This method will set the action for the last rule added to the internal array to respond and save the passed response. A respond action will mock the request with the provided response.