botium-core
Version:
The Selenium for Chatbots
28 lines (25 loc) • 562 B
JavaScript
const _ = require('lodash')
class BotiumMockAsserter {
constructor (fromJson = {}) {
this.name = fromJson.name
this.args = _.cloneDeep(fromJson.args)
this.not = fromJson.not
}
}
class BotiumMockUserInput {
constructor (fromJson = {}) {
this.name = fromJson.name
this.args = _.cloneDeep(fromJson.args)
}
}
class BotiumMockLogicHook {
constructor (fromJson = {}) {
this.name = fromJson.name
this.args = _.cloneDeep(fromJson.args)
}
}
module.exports = {
BotiumMockAsserter,
BotiumMockUserInput,
BotiumMockLogicHook
}