Skip to content

Commit

Permalink
Fixed some test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevenic committed Feb 25, 2020
1 parent 89f23cb commit f1b6fc2
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 13 deletions.
2 changes: 1 addition & 1 deletion libraries/adaptive-expressions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"scripts": {
"build": "tsc",
"test": "tsc && nyc mocha tests/ --timeout 60000",
"test": "tsc && mocha tests/ --timeout 60000",
"clean": "erase /q /s .\\lib",
"build-docs": "typedoc --theme markdown --entryPoint adaptive-expressions --excludePrivate --includeDeclarations --ignoreCompilerErrors --module amd --out ..\\..\\doc\\adaptive-expressions .\\lib\\index.d.ts --hideGenerator --name \"Bot Builder SDK - Expression\" --readme none",
"set-version": "npm version --allow-same-version ${Version}"
Expand Down
4 changes: 4 additions & 0 deletions libraries/adaptive-expressions/tests/mocha.opts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
--require ts-node/register
--require source-map-support/register
--recursive
**/*.js
11 changes: 5 additions & 6 deletions libraries/adaptive-expressions/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
"compilerOptions": {
"plugins": [
{ "name": "typescript-tslint-plugin" }
],
"target": "ESNext",
"target": "es6",
"lib": ["es2015", "dom"],
"module": "commonjs",
"strict": false,
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"outDir": "./lib",
"rootDirs": ["./src"],
"rootDir": "./src",
"types" : ["node"]
},
},
"include": [
"src/**/*"
]
Expand Down
2 changes: 1 addition & 1 deletion libraries/botbuilder-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"source-map-support": "^0.5.3",
"ts-node": "^4.1.0",
"typescript": "3.5.3",
"unzip": "^0.1.11"
"unzipper": "^0.10.9"
},
"scripts": {
"test": "tsc && nyc mocha tests/",
Expand Down
2 changes: 1 addition & 1 deletion libraries/botbuilder-core/tests/transcriptUtilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const url = require('url');
const promisify = require('util').promisify;
const readFileAsync = promisify(fs.readFile);
const request = require("request");
const unzip = require('unzip');
const unzip = require('unzipper');
const rimraf = require('rimraf');

const chatdown = require('chatdown');
Expand Down
2 changes: 1 addition & 1 deletion libraries/botbuilder-lg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"typescript": "3.5.3"
},
"scripts": {
"test": "tsc && nyc mocha tests/ --timeout 60000",
"test": "tsc && mocha tests/ --timeout 60000",
"build": "tsc",
"build-docs": "typedoc --theme markdown --entryPoint botbuilder-lg --excludePrivate --includeDeclarations --ignoreCompilerErrors --module amd --out ..\\..\\doc\\botbuilder-lg .\\lib\\index.d.ts --hideGenerator --name \"Bot Builder SDK - LG\" --readme none",
"clean": "erase /q /s .\\lib",
Expand Down
2 changes: 1 addition & 1 deletion libraries/botbuilder-testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"source-map-support": "^0.5.3",
"ts-node": "^4.1.0",
"typescript": "3.5.3",
"unzip": "^0.1.11",
"unzipper": "^0.10.9",
"uuid": "^3.3.2"
},
"scripts": {
Expand Down
6 changes: 4 additions & 2 deletions libraries/botbuilder/tests/streaming/tokenResolver.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ describe(`TokenResolver`, function () {
});
const returnTokenResponse = () =>
{
doneResolve('done');
// Give token code 100ms to run
setTimeout(() => doneResolve('done'), 100);
return { properties: { tokenPollingSettings: { timeout: 0 } } };
};
const botLogic= (ctx) => {
Expand Down Expand Up @@ -246,7 +247,8 @@ describe(`TokenResolver`, function () {
if (i < 2) {
return { properties: { tokenPollingSettings: { interval: 100 } } };
} else {
doneResolve('done');
// Give token code 100ms to run
setTimeout(() => doneResolve('done'), 100);
return { properties: { tokenPollingSettings: { timeout: 0 } } };
}
};
Expand Down

0 comments on commit f1b6fc2

Please sign in to comment.