Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ts-mockito

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-mockito - npm Package Compare versions

Comparing version 2.6.0 to 2.6.1

4

lib/ts-mockito.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc