nl_tokens: Wraps arrays and functions into instance of UniversalBot Ensure that given bot has connector otherwise inject TestConnector
pl_tokens: function resolveBot ( bot ) { let isWaterfall = ( "function" == typeof bot ) || Array . isArray ( bot ) ; if ( isWaterfall ) { let dialog = <mask> ; let connector = new TestConnector ( ) ; bot = new builder . UniversalBot ( connector ) ; bot . dialog ( '/' , dialog ) ; } else if ( bot instanceof builder . UniversalBot ) { if ( ! bot . connector ( ) ) { bot . connector ( 'console' , new TestConnector ( ) ) ; } } else { throw new Error ( ` ${ JSON . stringify ( bot ) } ` ) ; } return bot ; }