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

Export test utility function createHttpError() #5

Closed
phong-steph opened this issue Aug 1, 2019 · 1 comment
Closed

Export test utility function createHttpError() #5

phong-steph opened this issue Aug 1, 2019 · 1 comment

Comments

@phong-steph
Copy link

export function createHttpError(statusText: string, status: HttpStatus, responseBody: object) {
  const error = new HttpError(statusText);
  error.status = status;
  error.response = responseBody;
  return error;
}
@tkrotoff
Copy link
Owner

tkrotoff commented Aug 1, 2019

See a534716

@tkrotoff tkrotoff closed this as completed Aug 1, 2019
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

2 participants