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

Add 'expected' object for use in hooks #36

Merged
merged 1 commit into from
Aug 21, 2017

Conversation

anth0d
Copy link
Contributor

@anth0d anth0d commented Aug 18, 2017

I'd like to be able to refer to expected status code and other things within my hook without having to manage my own Expected type definition and deal with marshalling JSON, etc.

This is nice:

if t.Expected.StatusCode == "401" {
    t.Request.Headers["Authorization"] = "Bearer utterNonsense"
}

@ddelnano
Copy link
Collaborator

👍

@ddelnano ddelnano merged commit 2d09c7c into snikch:master Aug 21, 2017
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.

2 participants