All files / botbuilder-unit/spec/scripts/custom customStepScript.js

40% Statements 2/5
100% Branches 0/0
0% Functions 0/2
40% Lines 2/5
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 181x 1x                                
var myCustomMessage = 0;
module.exports = [
  {user: 'hi'},
  {bot: 'message #0'},
  {bot: 'message #1'},
  {bot: 'message #2'},
  {
    custom: () => {
      myCustomMessage = '4';
      return Promise.resolve();
    }
  },
  {bot: 'message #3'},
  {bot: function (){
    return Promise.resolve(`message #${myCustomMessage}`);
  }},
  {endConversation:true}
];