Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility to add wildcards [Feature] #2

Open
jfalameda opened this issue Dec 12, 2014 · 0 comments
Open

Possibility to add wildcards [Feature] #2

jfalameda opened this issue Dec 12, 2014 · 0 comments

Comments

@jfalameda
Copy link

Hi,

It would be great to be able to add wildcards the parameters on the beenInvokedWith. For example.

expect(smoax).to.have.beenInvokedWith('POST', 'http:localhost', '*') The* should match localhost URL independently of the parameters the request was made with. This would simplify the test writing.

expect(smoax).to.have.beenInvokedWith('POST', 'http:localhost/*', '*') Also a wildcard or regular expression on the URL would be great.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant