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

Fix passthrough type #265

Merged
merged 1 commit into from
Jul 18, 2019
Merged

Fix passthrough type #265

merged 1 commit into from
Jul 18, 2019

Conversation

xg-wang
Copy link
Member

@xg-wang xg-wang commented Jul 18, 2019

passthrough is supposed to be a ResponseHandler as 2nd arg of ResponseHandler.

const server = new Pretender(function() {
  this.get('/photos/:id', this.passthrough);
});

@xg-wang xg-wang merged commit 2af73cb into pretenderjs:master Jul 18, 2019
@xg-wang xg-wang deleted the passthrough branch July 18, 2019 20:06
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

Successfully merging this pull request may close these issues.

1 participant