Updated test

This commit is contained in:
delvedor
2018-12-12 16:49:06 +01:00
parent b91b1ad1de
commit a86a552a85
5 changed files with 99 additions and 9 deletions

View File

@ -252,7 +252,8 @@ 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)
api(cmd.params, (err, { body, warnings }) => {
const options = { ignore: cmd.params.ignore }
api(cmd.params, options, (err, { body, warnings }) => {
if (action.warnings && warnings === null) {
this.tap.fail('We should get a warning header', action.warnings)
} else if (!action.warnings && warnings !== null) {