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.2.8 to 2.2.9

lib/matcher/type/MatchingStringMatcher.d.ts

6

lib/Mock.js

@@ -24,5 +24,2 @@ "use strict";

this.objectPropertyCodeRetriever = new ObjectPropertyCodeRetriever_1.ObjectPropertyCodeRetriever();
if (typeof Proxy !== "undefined") {
this.instance = new Proxy(this.instance, this.createCatchAllHandlerForRemainingPropertiesWithoutGetters());
}
this.mock.__tsmockitoInstance = this.instance;

@@ -35,2 +32,5 @@ this.mock.__tsmockitoMocker = this;

}
if (typeof Proxy !== "undefined") {
this.mock.__tsmockitoInstance = new Proxy(this.instance, this.createCatchAllHandlerForRemainingPropertiesWithoutGetters());
}
}

@@ -37,0 +37,0 @@ Mocker.prototype.getMock = function () {

@@ -37,3 +37,5 @@ import { ArgCaptor1, ArgCaptor10, ArgCaptor2, ArgCaptor3, ArgCaptor4, ArgCaptor5, ArgCaptor6, ArgCaptor7, ArgCaptor8, ArgCaptor9 } from "./capture/ArgCaptor";

export declare function strictEqual(expectedValue: any): Matcher;
export declare function match(expectedValue: RegExp | string): Matcher;
export declare function objectContaining(expectedValue: Object): Matcher;
import * as mockito from "./ts-mockito";
export default mockito;

@@ -11,3 +11,5 @@ "use strict";

var DeepEqualMatcher_1 = require("./matcher/type/DeepEqualMatcher");
var MatchingStringMatcher_1 = require("./matcher/type/MatchingStringMatcher");
var NotNullMatcher_1 = require("./matcher/type/NotNullMatcher");
var ObjectContainingMatcher_1 = require("./matcher/type/ObjectContainingMatcher");
var StrictEqualMatcher_1 = require("./matcher/type/StrictEqualMatcher");

@@ -95,4 +97,12 @@ var MethodStubSetter_1 = require("./MethodStubSetter");

exports.strictEqual = strictEqual;
function match(expectedValue) {
return new MatchingStringMatcher_1.MatchingStringMatcher(expectedValue);
}
exports.match = match;
function objectContaining(expectedValue) {
return new ObjectContainingMatcher_1.ObjectContainingMatcher(expectedValue);
}
exports.objectContaining = objectContaining;
var mockito = require("./ts-mockito");
exports.default = mockito;
//# sourceMappingURL=ts-mockito.js.map
{
"name": "ts-mockito",
"version": "2.2.8",
"version": "2.2.9",
"description": "Mocking library for TypeScript",

@@ -5,0 +5,0 @@ "main": "lib/ts-mockito.js",

Sorry, the diff of this file is not supported yet

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