1616/*jshint -W030*/
1717/*global describe, it, before, after*/
1818"use strict" ;
19- //import Robot from 'hubot/src/Robot';
2019
2120var fs = require ( 'fs' ) ,
2221 expect = require ( "chai" ) . expect ,
2322 path = require ( "path" ) ,
24- //Robot = require("hubot/src/Robot.mjs"),
25- //TextMessage = require("hubot/src/message").TextMessage,
2623 CommandFactory = require ( '../src/lib/command_factory.js' ) ,
2724 formatCommand = require ( '../src/lib/format_command.js' ) ,
2825 utils = require ( '../src/lib/utils.js' ) ;
@@ -40,18 +37,11 @@ var enableTwofactor = function() {
4037
4138describe ( "two-factor auth module" , async function ( ) {
4239 var hubot_import = await import ( "hubot/index.mjs" ) ;
43-
44- //const TextMessage = await import("hubot/src/Message.mjs").TextMessage;
4540 var TextMessage = new hubot_import . TextMessage ;
46- //var Robot = await import("hubot/src/Robot.mjs");
47-
4841 var robot , user , adapter , st2bot , stop , command_factory ;
4942
5043 before ( async function ( done ) {
5144 robot = new hubot_import . Robot ( "mock-adapter" , true , "Hubot" ) ;
52- //const robot = (await import("hubot/src/Robot.mjs")).default("mock-adapter", false, "Hubot");
53-
54- //robot = new (await import("hubot/src/Robot.mjs")).default("mock-adapter", true, "Hubot");
5545
5646 // Hack. Need a better solution than stubbing out methods.
5747 if ( disableLogger ) {
0 commit comments