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

Handle non-200 success codes #38

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

kryptx
Copy link

@kryptx kryptx commented May 17, 2021

Allows the client to handle success codes other than 200.

@kryptx kryptx force-pushed the handle-non-200-success-codes branch from fa8abf4 to afddfdc Compare May 18, 2021 01:19
@Harmannz Harmannz self-requested a review May 18, 2021 01:28
Copy link

@Harmannz Harmannz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

})
.reply(201, {/* don't care about response */});

test.expect(2);
Copy link

@m1dcarry m1dcarry May 18, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not clear to me as to why we are expecting 2 here? Shouldn't it be expecting 1 because we are only creating a single watch?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The number is how many assertions nodeunit should expect. I've mainly just done this to follow the pattern elsewhere in this repo :)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah right okay. I misunderstood that! thanks

Copy link
Contributor

@ben833 ben833 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the version before merging

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.

4 participants