fancy-test
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -0,1 +1,9 @@ | ||
<a name="0.5.1"></a> | ||
## [0.5.1](https://github.com/jdxcode/fancy-test/compare/efd646be6d8d7449acbe47472c4f6f6323ba7737...v0.5.1) (2018-01-26) | ||
### Bug Fixes | ||
* fixed done callbacks ([5ef8df8](https://github.com/jdxcode/fancy-test/commit/5ef8df8)) | ||
<a name="0.5.0"></a> | ||
@@ -2,0 +10,0 @@ # [0.5.0](https://github.com/jdxcode/fancy-test/compare/75264f1f71a8cbd65abfc00466f37bfa90da299f...v0.5.0) (2018-01-26) |
@@ -61,3 +61,6 @@ "use strict"; | ||
} | ||
return context.test(arg1, (cb && cb.length === 2) ? done => run(done) : () => run()); | ||
function runWithDone(done) { | ||
run(done).catch(done); | ||
} | ||
return context.test(arg1, (cb && cb.length === 2) ? runWithDone : () => run()); | ||
}; | ||
@@ -64,0 +67,0 @@ return { |
@@ -31,4 +31,4 @@ /// <reference types="mocha" /> | ||
export interface It<I> { | ||
(expectation: string, cb?: (context: I, done?: MochaDone) => any): void; | ||
(cb?: (context: I, done?: MochaDone) => any): void; | ||
(expectation: string, cb?: (context: I, done: MochaDone) => any): void; | ||
(cb?: (context: I, done: MochaDone) => any): void; | ||
} | ||
@@ -35,0 +35,0 @@ export declare type Base<I extends Context, T extends Plugins> = { |
{ | ||
"name": "fancy-test", | ||
"description": "extendable utilities for testing", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"author": "Jeff Dickey @jdxcode", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/jdxcode/fancy-test/issues", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41135
506