removed rate limiting stuff
This commit is contained in:
parent
14878cf975
commit
70d8b80946
@ -19,7 +19,6 @@ TwitterApi.prototype.search = function(query, callbacks) {
|
||||
},
|
||||
onFailure: callbacks.onFailure,
|
||||
onComplete: callbacks.onComplete,
|
||||
on403: callbacks.onRateLimit,
|
||||
on503: callbacks.onFailWhale
|
||||
});
|
||||
}
|
||||
|
@ -65,24 +65,6 @@ describe("TwitterApi#search", function(){
|
||||
});
|
||||
});
|
||||
|
||||
describe("on rate limit", function(){
|
||||
beforeEach(function(){
|
||||
request.response(TestResponses.search.rateLimitReached);
|
||||
});
|
||||
|
||||
it("calls onRateLimit", function(){
|
||||
expect(onRateLimit).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("does not call onSuccess", function(){
|
||||
expect(onSuccess).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("calls onComplete", function(){
|
||||
expect(onComplete).toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
|
||||
describe("on fail whale", function(){
|
||||
beforeEach(function(){
|
||||
request.response(TestResponses.search.failWhale);
|
||||
|
Loading…
Reference in New Issue
Block a user