Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Commit

Permalink
[enhancement] Update mocha from v3.2.0 to v6.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornstar committed Apr 17, 2019
1 parent d4699fd commit fe24050
Show file tree
Hide file tree
Showing 3 changed files with 252 additions and 216 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -54,7 +54,7 @@
"@types/js-yaml": "^3.5.31",
"@types/minimatch": "^2.0.29",
"@types/mkdirp": "^0.5.2",
"@types/mocha": "^2.2.35",
"@types/mocha": "^5.2.6",
"@types/node": "^7.0.29",
"@types/resolve": "^0.0.4",
"@types/rimraf": "^2.0.2",
Expand All @@ -63,7 +63,7 @@
"github": "^8.2.1",
"husky": "^0.14.3",
"json-stringify-pretty-compact": "^1.2.0",
"mocha": "^3.2.0",
"mocha": "^6.1.3",
"npm-run-all": "^4.0.2",
"nyc": "^13.3.0",
"prettier": "~1.16.4",
Expand Down
4 changes: 2 additions & 2 deletions test/executable/executableTests.ts
Expand Up @@ -40,7 +40,7 @@ const dummyLogger: Logger = {
},
};

describe("Executable", function(this: Mocha.ISuiteCallbackContext) {
describe("Executable", function(this: Mocha.Suite) {
this.slow(3000); // the executable is JIT-ed each time it runs; avoid showing slowness warnings
this.timeout(10000);

Expand Down Expand Up @@ -181,7 +181,7 @@ describe("Executable", function(this: Mocha.ISuiteCallbackContext) {
});

describe("Custom formatters", () => {
const createFormatVerifier = (done: MochaDone): ExecFileCallback => (err, stdout) => {
const createFormatVerifier = (done: Mocha.Done): ExecFileCallback => (err, stdout) => {
assert.isNotNull(err, "process should exit with error");
assert.strictEqual(err.code, 2, "error code should be 2");
assert.include(
Expand Down

0 comments on commit fe24050

Please sign in to comment.