FormidableLabs / yesno

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

Feature/64: Add `yesno.matching().respond()` #66

Closed ianwsperber closed 4 years ago

ianwsperber commented 4 years ago

Adds functionality described in #64

yesno
  .matching({ request: { path: '/foobar' } })
  .respond({ statusCode: 200, body: { msg: 'You win!' } });

Will need to follow up with update to README.

Please first review https://github.com/FormidableLabs/yesno/pull/65

ianwsperber commented 4 years ago

@mscottx88 @carbonrobot Anything I need to do to get this merged?