ts-mockito
Advanced tools
Comparing version 2.2.8 to 2.2.9
@@ -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
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
113794
103
1622