Skip to content

Commit

Permalink
Remove unneeded dones
Browse files Browse the repository at this point in the history
  • Loading branch information
rmeritz committed Jun 17, 2020
1 parent 008cd36 commit 4be1911
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/find.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ describe('record retrival', function() {
});
});

it('can handle an error', function(done) {
it('can handle an error', function() {
testExpressApp.set('handler override', function(req, res) {
res.status(402).json({
error: {message: 'foo bar'},
Expand All @@ -87,12 +87,11 @@ describe('record retrival', function() {
function(err) {
expect(err.statusCode).toBe(402);
expect(err.message).toBe('foo bar');
done();
}
);
});

it('can find after a retry if rate limited', function(done) {
it('can find after a retry if rate limited', function() {
var apiCallCount = 0;
var recordId = 'record1';

Expand Down Expand Up @@ -120,7 +119,6 @@ describe('record retrival', function() {
.then(function(foundRecord) {
expect(foundRecord.id).toBe(recordId);
expect(foundRecord.get('Name')).toBe('Rebecca');
done();
});
});
});

0 comments on commit 4be1911

Please sign in to comment.