FormidableLabs / yesno

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

Feature: Implement yesno.mockRule #86

Open keithcom opened 4 years ago

keithcom commented 4 years ago

Implement the new yesno.mockRule feature as defined in docs/DESIGN.md. It should be passed an HttpFilter (like the matching method) and append it to the internal array of rules. On requests, the rules should be evaluated and applied before any actions.