Updated test

This commit is contained in:
delvedor
2018-12-18 17:29:06 +01:00
parent 32e674f26c
commit 7a181ff9ac
2 changed files with 15 additions and 2 deletions

View File

@ -252,7 +252,7 @@ TestRunner.prototype.set = function (key, name) {
TestRunner.prototype.do = function (action, done) {
const cmd = this.parseDo(action)
const api = delve(this.client, cmd.method).bind(this.client)
const options = { ignore: cmd.params.ignore, headers: cmd.params.headers }
const options = { ignore: cmd.params.ignore, headers: action.headers }
api(cmd.params, options, (err, { body, warnings }) => {
if (action.warnings && warnings === null) {
this.tap.fail('We should get a warning header', action.warnings)