All files / src/log-reporters BaseLogReporter.js

95.45% Statements 21/22
75% Branches 3/4
26.67% Functions 4/15
95.45% Lines 21/22
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57        1x 2x 2x 26x 26x 26x       26x   2x   1x     1x     1x     1x     1x     1x     1x       1x     1x     1x     1x     1x         1x
'use strict';
function BaseLogReporter() {
}
 
BaseLogReporter.prototype.newScript = function (messages, scriptName) {
  let intro = '';
  messages.forEach((item, i) => {
    item = Object.assign({}, item);
    for (var key in item) {
      Iif (item.hasOwnProperty(key) && ("function" == typeof (item[key]))) {
        item[key] = '[[Function]]';
      }
    }
    intro = intro + (`${i}: ${JSON.stringify(item)}\n`);
  });
  console.log(intro);
}
BaseLogReporter.prototype.scriptFinished = function () {
 
}
BaseLogReporter.prototype.messageReceived = function (step, message) {
 
}
BaseLogReporter.prototype.endConversation = function (step) {
 
}
BaseLogReporter.prototype.typing = function (step) {
 
}
BaseLogReporter.prototype.messageSent = function (step, message) {
 
}
BaseLogReporter.prototype.customStep = function (step, message) {
 
}
BaseLogReporter.prototype.expectationError = function (step, received, error) {
 
}
 
BaseLogReporter.prototype.error = function (errorHeader, message) {
 
}
BaseLogReporter.prototype.warning = function (warningHeader, message) {
 
}
BaseLogReporter.prototype.info = function (infoHeader, message) {
 
}
BaseLogReporter.prototype.session = function (step, session) {
 
}
BaseLogReporter.prototype.startupDialog = function (step, dialog, args) {
 
}
 
 
module.exports = BaseLogReporter;