Skip to content

Commit

Permalink
Linter fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
tremlfl committed Jul 26, 2019
1 parent 751192d commit 0a56818
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/BotiumBindings.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ module.exports = class BotiumBindings {
args = Object.assign({}, this.getPackageJsonBotiumSection(), args)
debug(`Botium Bindings args: ${util.inspect(args)}`)

this.convodirs = args.convodirs || [ './spec/convo' ]
this.expandConvos = args.hasOwnProperty('expandConvos') ? args.expandConvos : true
this.expandUtterancesToConvos = args.hasOwnProperty('expandUtterancesToConvos') ? args.expandUtterancesToConvos : false
this.expandScriptingMemoryToConvos = args.hasOwnProperty('expandScriptingMemoryToConvos') ? args.expandScriptingMemoryToConvos : false
this.convodirs = args.convodirs || ['./spec/convo']
this.expandConvos = Object.prototype.hasOwnProperty.call(args, 'expandConvos') ? args.expandConvos : true
this.expandUtterancesToConvos = Object.prototype.hasOwnProperty.call(args, 'expandUtterancesToConvos') ? args.expandUtterancesToConvos : false
this.expandScriptingMemoryToConvos = Object.prototype.hasOwnProperty.call(args, 'expandScriptingMemoryToConvos') ? args.expandScriptingMemoryToConvos : false

this.driver = new BotDriver(botiumConfig && botiumConfig.Capabilities, botiumConfig && botiumConfig.Sources, botiumConfig && botiumConfig.Envs)
this.compiler = this.driver.BuildCompiler()
Expand Down Expand Up @@ -125,20 +125,23 @@ module.exports = class BotiumBindings {
return Promise.reject(new Error('Botium Initialization failed. Please see error messages above (enable debug logging).'))
}
}

UserSays (...args) {
if (this.container) {
return this.container.UserSays(...args)
} else {
return Promise.reject(new Error('Botium Initialization failed. Please see error messages above (enable debug logging).'))
}
}

WaitBotSays (...args) {
if (this.container) {
return this.container.WaitBotSays(...args)
} else {
return Promise.reject(new Error('Botium Initialization failed. Please see error messages above (enable debug logging).'))
}
}

WaitBotSaysText (...args) {
if (this.container) {
return this.container.WaitBotSaysText(...args)
Expand Down

0 comments on commit 0a56818

Please sign in to comment.