testdouble
Advanced tools
Comparing version 1.10.1 to 1.10.2
# Change Log | ||
## [v1.10.2](https://github.com/testdouble/testdouble.js/tree/v1.10.2) (2016-12-31) | ||
[Full Changelog](https://github.com/testdouble/testdouble.js/compare/v1.10.1...v1.10.2) | ||
**Closed issues:** | ||
- Possible pollution issue \(2 tests work individually, but fails when run together\) [\#171](https://github.com/testdouble/testdouble.js/issues/171) | ||
- td.verify and td.when redundency warning [\#170](https://github.com/testdouble/testdouble.js/issues/170) | ||
- Does not work with jest [\#128](https://github.com/testdouble/testdouble.js/issues/128) | ||
**Merged pull requests:** | ||
- Captor typings [\#174](https://github.com/testdouble/testdouble.js/pull/174) ([danielmoore](https://github.com/danielmoore)) | ||
- Align TS replace\(\) signuatrue return with implementaiton [\#173](https://github.com/testdouble/testdouble.js/pull/173) ([danielmoore](https://github.com/danielmoore)) | ||
## [v1.10.1](https://github.com/testdouble/testdouble.js/tree/v1.10.1) (2016-12-20) | ||
@@ -4,0 +18,0 @@ [Full Changelog](https://github.com/testdouble/testdouble.js/compare/v1.10.0...v1.10.1) |
@@ -19,3 +19,3 @@ export type TestDouble = Function; | ||
export type Stubber = { | ||
export interface Stubber { | ||
thenReturn(...args: any[]): TestDouble; | ||
@@ -33,3 +33,3 @@ thenDo(f: Function): TestDouble; | ||
export type Matchers = { | ||
export interface Matchers { | ||
anything(): any; | ||
@@ -40,24 +40,31 @@ isA(type: Function): any; | ||
not(v: any): any; | ||
}; | ||
captor(): Captor | ||
} | ||
export interface Captor { | ||
capture(): any; | ||
value?: any; | ||
values?: any[]; | ||
} | ||
export const matchers: Matchers; | ||
export function replace(path: string, f?: any): void; | ||
export function replace(path: {}, property: string, f?: any): void; | ||
export function replace(path: string, f?: any): any; | ||
export function replace(path: {}, property: string, f?: any): any; | ||
export function reset(): void; | ||
export type VerificationConfig = { | ||
export interface VerificationConfig { | ||
ignoreExtraArgs?: boolean; | ||
times?: number; | ||
}; | ||
} | ||
export function verify(a: any, check?: VerificationConfig): void; | ||
type Call = { | ||
interface Call { | ||
context: {}; | ||
args: any[]; | ||
}; | ||
} | ||
export type Explanation = { | ||
export interface Explanation { | ||
callCount: number; | ||
@@ -64,0 +71,0 @@ calls: Call[]; |
// Generated by CoffeeScript 1.11.1 | ||
(function() { | ||
module.exports = '1.10.1'; | ||
module.exports = '1.10.2'; | ||
}).call(this); |
{ | ||
"name": "testdouble", | ||
"version": "1.10.1", | ||
"version": "1.10.2", | ||
"description": "A minimal test double library for TDD with JavaScript", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/testdouble/testdouble.js", |
Sorry, the diff of this file is too big to display
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
615577
12475