ts-mockito
Advanced tools
Comparing version 2.6.0 to 2.6.1
@@ -23,4 +23,4 @@ import { ArgCaptor1, ArgCaptor10, ArgCaptor2, ArgCaptor3, ArgCaptor4, ArgCaptor5, ArgCaptor6, ArgCaptor7, ArgCaptor8, ArgCaptor9 } from "./capture/ArgCaptor"; | ||
export declare function capture<T0>(method: (a: T0) => any): ArgCaptor1<T0>; | ||
export declare function reset<T>(mockedValue: T): void; | ||
export declare function resetCalls<T>(mockedValue: T): void; | ||
export declare function reset<T>(...mockedValues: T[]): void; | ||
export declare function resetCalls<T>(...mockedValues: T[]): void; | ||
export declare function anyOfClass<T>(expectedClass: new (...args: any[]) => T): any; | ||
@@ -27,0 +27,0 @@ export declare function anyFunction(): any; |
@@ -52,8 +52,16 @@ "use strict"; | ||
exports.capture = capture; | ||
function reset(mockedValue) { | ||
mockedValue.__tsmockitoMocker.reset(); | ||
function reset() { | ||
var mockedValues = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
mockedValues[_i] = arguments[_i]; | ||
} | ||
mockedValues.forEach(function (mockedValue) { return mockedValue.__tsmockitoMocker.reset(); }); | ||
} | ||
exports.reset = reset; | ||
function resetCalls(mockedValue) { | ||
mockedValue.__tsmockitoMocker.resetCalls(); | ||
function resetCalls() { | ||
var mockedValues = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
mockedValues[_i] = arguments[_i]; | ||
} | ||
mockedValues.forEach(function (mockedValue) { return mockedValue.__tsmockitoMocker.resetCalls(); }); | ||
} | ||
@@ -60,0 +68,0 @@ exports.resetCalls = resetCalls; |
{ | ||
"name": "ts-mockito", | ||
"version": "2.6.0", | ||
"version": "2.6.1", | ||
"description": "Mocking library for TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "lib/ts-mockito.js", |
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
130763
215065
1862