Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.

Commit 0c04d43

Browse files
committed
Minor fixes
1 parent 633265b commit 0c04d43

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

tools/botskills/src/utils/authenticationUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ export class AuthenticationUtils {
243243
} catch (err) {
244244
logger.warning(`Could not configure authentication connection automatically.`);
245245
if (currentCommand.length > 0) {
246-
logger.warning(`There was an error while executing the following command:\n\t${currentCommand.join(' ')}\\${err.message}`);
246+
logger.warning(`There was an error while executing the following command:\n\t${currentCommand.join(' ')}\n${err.message}`);
247247
logger.warning(`You must configure one of the following connection types MANUALLY in the Azure Portal:
248248
${manifest.authenticationConnections.map((authConn: IAuthenticationConnection) => authConn.serviceProviderId)
249249
.join(', ')}`);

tools/botskills/test/authentication.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const { writeFileSync } = require("fs");
88
const { join, resolve } = require("path");
99
const sandbox = require("sinon").createSandbox();
1010
const { TestLogger } = require("./helpers/testLogger");
11-
const { AuthenticationUtils } = require("../lib/utils/index");
11+
const { AuthenticationUtils } = require("../lib/utils");
1212
const authenticationUtils = new AuthenticationUtils();
1313
const emptyAzureAuthSettings = JSON.stringify(require(resolve(__dirname, join("mocks", "azureAuthSettings", "emptyAuthSettings.json"))));
1414
const filledAzureAuthSettings = JSON.stringify(require(resolve(__dirname, join("mocks", "azureAuthSettings", "filledAuthSettings.json"))));
@@ -141,7 +141,7 @@ https://github.com/microsoft/botframework-solutions/blob/master/docs/howto/assis
141141
https://github.com/microsoft/botframework-solutions/blob/master/docs/howto/assistant/linkedaccounts.md#authentication-configuration`);
142142
strictEqual(warningList[warningList.length - 2], `You must configure one of the following connection types MANUALLY in the Azure Portal:
143143
Azure Active Directory v2`);
144-
strictEqual(warningList[warningList.length - 3], `There was an error while executing the following command:\n\taz ad app show --id \\Mocked function throws an Error`)
144+
strictEqual(warningList[warningList.length - 3], `There was an error while executing the following command:\n\taz ad app show --id \nMocked function throws an Error`)
145145
});
146146

147147
it("when the scopes are not configured automatically", async function() {

tools/botskills/test/childProcess.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
*/
55

66
const { strictEqual } = require("assert");
7-
const { ChildProcessUtils } = require("../lib/utils/childProcessUtils");
8-
const sandbox = require("sinon").createSandbox();
7+
const { ChildProcessUtils } = require("../lib/utils");
98
const childProcessUtils = new ChildProcessUtils();
109
const validOutput = "testing childProcess util";
1110
const unrecognizeCommand = "unrecognizeCommand";

tools/botskills/test/sanitization.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
const { strictEqual } = require("assert");
7-
const { sanitizePath } = require("../lib/utils/index");
7+
const { sanitizePath } = require("../lib/utils");
88

99
describe("The sanitization path util", function () {
1010
describe("should return a path without trailing backslash", function () {

tools/botskills/test/validation.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
const { strictEqual } = require("assert");
7-
const { validatePairOfArgs } = require("../lib/utils/index");
7+
const { validatePairOfArgs } = require("../lib/utils");
88

99
describe("The validation util", function() {
1010
describe("should return a message", function() {

0 commit comments

Comments
 (0)