don't pass headers through to jobs

This commit is contained in:
2016-07-08 17:46:30 -07:00
parent c44d275395
commit b99f5ff1b9
2 changed files with 0 additions and 11 deletions

View File

@@ -210,15 +210,6 @@ describe('Job Class', function () {
expect(indexArgs.body).to.have.property('priority', minPriority);
});
});
it('should pass headers to the client', function () {
const headers = { authorization: 'Basic dXNlcjpwYXNzd29yZA==' };
const job = new Job(client, index, type, payload, Object.assign(options, { headers }));
return job.ready.then(() => {
const indexArgs = validateDoc(client.index);
expect(indexArgs).to.have.property('headers', headers);
});
});
});
describe('custom client', function () {