atecarlos / protractor-http-mock

A library designed to work alongside Protractor for setting up mocks for your HTTP ajax requests.
MIT License
173 stars 70 forks source link

Add regex matching on path. #95

Closed Crevil closed 8 years ago

Crevil commented 8 years ago

Added regex property on mocks to enable Regex matching on path property. To support JSON files and javascript objects, I've used the approach. With this, all regex patterns are interpreted as strings, and proper escapings of path slashes etc. are necessary. See the examples for details on this.

Further more cleaned some minor jshint cleanup.

Implements #89

atecarlos commented 8 years ago

This looks great @Crevil . I was just about ready to work on this when I saw your PR.

Thanks!

danieljin commented 8 years ago

👍

Crevil commented 8 years ago

Glad it fits. It was an easy implementation and I'd love to help on this.