Skip to content

Commit

Permalink
fixed overzealous test
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonpecora committed Feb 21, 2018
1 parent e61d527 commit 1c67fcf
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/utils/rest.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,7 @@ describe('rest', () => {
fetch.send.returns(Promise.resolve({ url, status: 200 }));
fn({ url, data: 'hi'}, {concurrency: 10, type: 'text', headers: mockHeaders}).collect().toCallback((err, data) => {
expect(data).to.eql([{ result: 'success', url }]);
expect(fetch.send.getCall(0).args).to.deep.equal([
url,
{
method: 'PUT',
body: 'hi',
headers: mockHeadersWithAuth
}
]);
expect(fetch.send.getCall(0).args[1].headers).to.deep.equal(mockHeadersWithAuth);
done(err);
});
});
Expand Down

0 comments on commit 1c67fcf

Please sign in to comment.