botium-core
Version:
The Selenium for Chatbots
13 lines (11 loc) • 346 B
JavaScript
const _ = require('lodash')
module.exports.hasWaitForBotTimeout = (transciptError) => {
if (!transciptError) {
return false
}
const str = transciptError.message || (_.isString(transciptError) ? transciptError : null)
if (!str) {
return false
}
return str.indexOf(': error waiting for bot - Bot did not respond within') > 0
}