-
Notifications
You must be signed in to change notification settings - Fork 407
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 test coverage for lib/run_action.js
#187
Conversation
test/find.test.js
Outdated
@@ -16,6 +16,7 @@ describe('record retrival', function() { | |||
}); | |||
|
|||
afterAll(function() { | |||
delete global.x; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably delete global.window
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opps thanks fixed.
test/find.test.js
Outdated
}); | ||
}); | ||
|
||
it('can find after a retry if rate limited', function(done) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
@kasrak - Once this PR gets merged I'm ready to open up a stacked PR for changing |
@rmeritz thanks! Looks like there's a conflict with |
b1d49ec
to
4be1911
Compare
@kasrak - I fixed the merge conflict. |
lib/run_action.js
run_action
didn't have any unit tests but was already pretty throughly tested because almost all methods use it run make their API requests. I didn't add unit testing I just added the missing pieaces of coverage: