Skip to content

Commit 06e9bf0

Browse files
committed
robot class
1 parent a981990 commit 06e9bf0

6 files changed

+7
-7
lines changed

test/test-st2-invalid-auth.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ chai.use(chaiAsPromised);
3434
global.process.exit = sinon.spy();
3535

3636
describe("invalid st2 credential configuration", async function() {
37-
const Robot = await import("hubot/src/Robot.mjs");
37+
const Robot = await import("hubot/src/Robot.mjs").Robot;
3838

3939
var robot = new Robot(null, "mock-adapter", false, "Hubot");
4040
robot.logger = new Logger(true);

test/test-st2-unauthorized.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var chai = require('chai'),
2929
chai.use(sinonChai);
3030

3131
describe("auth with invalid st2 API key", async function() {
32-
const Robot = await import("hubot/src/Robot.mjs");
32+
const Robot = await import("hubot/src/Robot.mjs").Robot;
3333

3434
var stop;
3535
var robot = new Robot(null, "mock-adapter", true, "Hubot");

test/test-st2bot-envvars.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var chai = require("chai"),
2929
chai.use(sinonChai);
3030

3131
describe("environment variable configuration", async function () {
32-
const Robot = await import("hubot/src/Robot.mjs");
32+
const Robot = await import("hubot/src/Robot.mjs").Robot;
3333
var robot = new Robot(null, "mock-adapter", false, "Hubot");
3434
robot.logger = new Logger(true);
3535
var restore_env = null,

test/test-st2bot-setup.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ var disableAuth = function() {
3535
};
3636

3737
describe("stanley the StackStorm bot", async function() {
38-
const Robot = await import("hubot/src/Robot.mjs");
39-
const TextMessage = await import("hubot/src/Messages.msj").TextMessage;
38+
const Robot = await import("hubot/src/Robot.mjs").Robot;
39+
const TextMessage = await import("hubot/src/Messages.mjs").TextMessage;
4040
var robot, user, adapter, st2bot, stop;
4141

4242
before(function(done) {

test/test-st2bot-sigusr2.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var chai = require("chai"),
2929
chai.use(sinonChai);
3030

3131
describe("SIGUSR2", async function () {
32-
const Robot = await import("hubot/src/Robot.mjs");
32+
const Robot = await import("hubot/src/Robot.mjs").Robot;
3333
var robot = new Robot(null, "mock-adapter", false, "Hubot");
3434
robot.logger = new Logger(true);
3535
var debug_spy = sinon.spy(robot.logger, 'debug'),

test/test-twofactor.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var enableTwofactor = function() {
3939
};
4040

4141
describe("two-factor auth module", async function() {
42-
const TextMessage = await import("hubot/src/Messages.msj").TextMessage;
42+
const TextMessage = await import("hubot/src/Messages.mjs").TextMessage;
4343
const Robot = await import("hubot/src/Robot.mjs");
4444
var robot, user, adapter, st2bot, stop, command_factory;
4545

0 commit comments

Comments
 (0)