UNPKG
botbuilder-unit
Version:
latest (0.7.1)
0.7.1
0.7.0
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.5
0.5.4
0.5.3
0.5.2
0.5.0
0.4.8
0.4.7
0.4.6
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.0
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.0
Unit tests for chatbot dialogs
github.com/gudwin/botbuilder-unit
gudwin/botbuilder-unit
botbuilder-unit
/
spec
/
lib
/
botFactory.js
13 lines
(10 loc)
•
237 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
/* jslint es6 */
'use strict'
;
const
builder =
require
(
'botbuilder'
);
module
.
exports
=
function
(
) {
let
bot =
new
builder.
UniversalBot
(); bot.
dialog
(
'/'
,
function
(
session
) { session.
beginDialog
(
'/test'
); })
return
bot; }