@morgan-stanley/ts-mocking-bird
Advanced tools
Comparing version 0.2.3 to 0.3.0
export * from './property-replacement-helper'; | ||
export * from './module-helper'; | ||
export * from './jest-helper'; | ||
export * from './lookup-helper'; |
@@ -9,2 +9,3 @@ "use strict"; | ||
__export(require("./jest-helper")); | ||
__export(require("./lookup-helper")); | ||
//# sourceMappingURL=index.js.map |
@@ -33,3 +33,3 @@ "use strict"; | ||
var brImport = jest.genMockFromModule(absolutePath); | ||
return __assign({}, brImport, wrappedModule); | ||
return __assign(__assign({}, brImport), wrappedModule); | ||
} | ||
@@ -36,0 +36,0 @@ exports.proxyJestModule = proxyJestModule; |
@@ -6,2 +6,5 @@ export declare type OperatorFunction<T, C extends ConstructorFunction<T>> = (value: IMocked<T, C>) => IMocked<T, C>; | ||
}[keyof T]>; | ||
export declare type PropertiesOnly<T> = Pick<T, { | ||
[K in keyof T]: Required<T>[K] extends Function ? never : K; | ||
}[keyof T]>; | ||
/** | ||
@@ -29,14 +32,17 @@ * Allows custom logic to verify that a function parameter has the expected value. | ||
}; | ||
export declare type FunctionCallLookup = { | ||
[key: string]: any[][]; | ||
export declare type FunctionCallLookup<T, C extends ConstructorFunction<T>, U extends LookupType> = { | ||
[P in FunctionName<T, C, U>]?: LookupParams<T, C, U, P>[]; | ||
}; | ||
export declare type LookupParams<T, C extends ConstructorFunction<T>, U extends LookupType, K extends FunctionName<T, C, U>> = U extends FunctionTypes ? FunctionParams<VerifierTarget<T, C, U>[K]> : U extends SetterTypes ? [VerifierTarget<T, C, U>[K]] : []; | ||
export declare type FunctionParams<T> = T extends (...args: infer P) => any ? P : never; | ||
export declare type ConstructorFunction<T> = new (...args: any[]) => T; | ||
export declare type StaticFunctionTypes = 'staticFunction' | 'staticGetter' | 'staticSetter'; | ||
export declare type InstanceFunctionTypes = 'function' | 'getter' | 'setter'; | ||
export declare type StaticLookupTypes = 'staticFunction' | 'staticGetter' | 'staticSetter'; | ||
export declare type InstanceLookupTypes = 'function' | 'getter' | 'setter'; | ||
export declare type SetterTypes = 'staticSetter' | 'setter'; | ||
export declare type VerifierTarget<T, C extends ConstructorFunction<T>, U extends FunctionType> = U extends StaticFunctionTypes ? C : T; | ||
export declare type FunctionType = StaticFunctionTypes | InstanceFunctionTypes; | ||
export declare type FunctionName<T, C extends ConstructorFunction<T>, U extends FunctionType> = keyof VerifierTarget<T, C, U>; | ||
export interface IFunctionWithParametersVerification<P extends Array<any>, T, U extends FunctionType, C extends new (...args: any[]) => T = never> extends IFunctionVerifier<T, U, C> { | ||
export declare type GetterTypes = 'staticGetter' | 'getter'; | ||
export declare type FunctionTypes = 'staticFunction' | 'function'; | ||
export declare type LookupType = StaticLookupTypes | InstanceLookupTypes; | ||
export declare type VerifierTarget<T, C extends ConstructorFunction<T>, U extends LookupType> = U extends StaticLookupTypes ? U extends FunctionTypes ? FunctionsOnly<C> : C : U extends FunctionTypes ? FunctionsOnly<T> : T; | ||
export declare type FunctionName<T, C extends ConstructorFunction<T>, U extends LookupType> = keyof VerifierTarget<T, C, U>; | ||
export interface IFunctionWithParametersVerification<P extends Array<any>, T, U extends LookupType, C extends new (...args: any[]) => T = never> extends IFunctionVerifier<T, U, C> { | ||
/** | ||
@@ -77,3 +83,3 @@ * Checks the parameters in a non-strict equality way. | ||
} | ||
export interface IStrictFunctionVerification<T, U extends FunctionType, C extends new (...args: any[]) => T = never> extends IFunctionVerifier<T, U, C> { | ||
export interface IStrictFunctionVerification<T, U extends LookupType, C extends new (...args: any[]) => T = never> extends IFunctionVerifier<T, U, C> { | ||
/** | ||
@@ -84,3 +90,3 @@ * verify that the function has been called ONLY with the specified parameters and never without | ||
} | ||
export interface IFunctionVerifier<T, U extends FunctionType, C extends new (...args: any[]) => T = never> { | ||
export interface IFunctionVerifier<T, U extends LookupType, C extends new (...args: any[]) => T = never> { | ||
type: U; | ||
@@ -102,8 +108,9 @@ functionName: FunctionName<T, C, U>; | ||
mockConstructor: C; | ||
functionCallLookup: FunctionCallLookup; | ||
setterCallLookup: FunctionCallLookup; | ||
getterCallLookup: FunctionCallLookup; | ||
staticFunctionCallLookup: FunctionCallLookup; | ||
staticSetterCallLookup: FunctionCallLookup; | ||
staticGetterCallLookup: FunctionCallLookup; | ||
functionCallLookup: FunctionCallLookup<T, C, 'function'>; | ||
setterCallLookup: FunctionCallLookup<T, C, 'setter'>; | ||
getterCallLookup: FunctionCallLookup<T, C, 'getter'>; | ||
staticFunctionCallLookup: FunctionCallLookup<T, C, 'staticFunction'>; | ||
staticSetterCallLookup: FunctionCallLookup<T, C, 'staticSetter'>; | ||
staticGetterCallLookup: FunctionCallLookup<T, C, 'staticGetter'>; | ||
functionReplacementLookup: Partial<Record<LookupType, Record<string, ((...args: any[]) => any) | undefined>>>; | ||
/** | ||
@@ -110,0 +117,0 @@ * Used to setup the mock with multiple operators. |
@@ -18,2 +18,3 @@ "use strict"; | ||
staticGetterCallLookup: {}, | ||
functionReplacementLookup: {}, | ||
mock: {}, | ||
@@ -20,0 +21,0 @@ // tslint:disable-next-line:no-empty |
@@ -1,2 +0,2 @@ | ||
import { ConstructorFunction, FunctionsOnly, OperatorFunction } from './contracts'; | ||
import { ConstructorFunction, FunctionName, OperatorFunction } from './contracts'; | ||
/** | ||
@@ -10,3 +10,3 @@ * Mocks a function on an existing Mock. | ||
*/ | ||
export declare function setupFunction<T, C extends ConstructorFunction<T>, U extends keyof FunctionsOnly<T>>(functionName: U, mockFunction?: T[U]): OperatorFunction<T, C>; | ||
export declare function setupFunction<T, C extends ConstructorFunction<T>, U extends FunctionName<T, C, 'function'>>(functionName: U, mockFunction?: T[U]): OperatorFunction<T, C>; | ||
/** | ||
@@ -20,3 +20,3 @@ * Mocks a staticfunction on an existing Mock. | ||
*/ | ||
export declare function setupStaticFunction<T, C extends ConstructorFunction<T>, U extends keyof FunctionsOnly<C>>(functionName: U, mockFunction?: C[U]): OperatorFunction<T, C>; | ||
export declare function setupStaticFunction<T, C extends ConstructorFunction<T>, U extends FunctionName<T, C, 'staticFunction'>>(functionName: U, mockFunction?: C[U]): OperatorFunction<T, C>; | ||
/** | ||
@@ -30,3 +30,3 @@ * Sets up a property on an existing Mock. | ||
*/ | ||
export declare function setupProperty<T, C extends ConstructorFunction<T>, U extends keyof T>(propertyName: U, value?: T[U]): OperatorFunction<T, C>; | ||
export declare function setupProperty<T, C extends ConstructorFunction<T>, U extends FunctionName<T, C, 'getter'>>(propertyName: U, value?: T[U]): OperatorFunction<T, C>; | ||
/** | ||
@@ -40,3 +40,3 @@ * Sets up a static property on an existing Mock. | ||
*/ | ||
export declare function setupStaticProperty<T, C extends ConstructorFunction<T>, U extends keyof C>(propertyName: U, value?: C[U]): OperatorFunction<T, C>; | ||
export declare function setupStaticProperty<T, C extends ConstructorFunction<T>, U extends FunctionName<T, C, 'staticGetter'>>(propertyName: U, value?: C[U]): OperatorFunction<T, C>; | ||
/** | ||
@@ -50,3 +50,3 @@ * Sets up a property on an existing Mock. | ||
*/ | ||
export declare function defineProperty<T, C extends ConstructorFunction<T>, U extends keyof T>(propertyName: U, getter?: () => T[U], setter?: (value: T[U]) => void): OperatorFunction<T, C>; | ||
export declare function defineProperty<T, C extends ConstructorFunction<T>, U extends FunctionName<T, C, 'getter'>>(propertyName: U, getter?: () => T[U], setter?: (value: T[U]) => void): OperatorFunction<T, C>; | ||
/** | ||
@@ -60,2 +60,2 @@ * Sets up a static property on an existing Mock with constructor. | ||
*/ | ||
export declare function defineStaticProperty<T, C extends ConstructorFunction<T>, U extends keyof C>(propertyName: U, getter?: () => C[U], setter?: (value: C[U]) => void): OperatorFunction<T, C>; | ||
export declare function defineStaticProperty<T, C extends ConstructorFunction<T>, U extends FunctionName<T, C, 'staticGetter'>>(propertyName: U, getter?: () => C[U], setter?: (value: C[U]) => void): OperatorFunction<T, C>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var helper_1 = require("../helper"); | ||
/** | ||
@@ -18,10 +19,17 @@ * Mocks a function on an existing Mock. | ||
} | ||
var _a; | ||
var returnValue; | ||
if (mockFunction instanceof Function) { | ||
returnValue = mockFunction.apply(mocked.mock, args); | ||
var mockedFunction = (_a = mocked.functionReplacementLookup['function']) === null || _a === void 0 ? void 0 : _a[functionName]; | ||
if (mockedFunction instanceof Function) { | ||
returnValue = mockedFunction.apply(mocked.mock, args); | ||
} | ||
trackFunctionCall(mocked, functionName, args, false); | ||
trackFunctionCall(mocked, 'function', functionName, args); | ||
return returnValue; | ||
}; | ||
mocked.mock[functionName] = functionReplacement; | ||
var functionLookup = (mocked.functionReplacementLookup['function'] = | ||
mocked.functionReplacementLookup['function'] || {}); | ||
functionLookup[functionName] = mockFunction; | ||
if (mocked.mock[functionName] == null) { | ||
mocked.mock[functionName] = functionReplacement; | ||
} | ||
mocked.functionCallLookup[functionName] = []; | ||
@@ -47,10 +55,17 @@ return mocked; | ||
} | ||
var _a; | ||
var returnValue; | ||
if (mockFunction instanceof Function) { | ||
returnValue = mockFunction.apply(mocked.mock, args); | ||
var mockedFunction = (_a = mocked.functionReplacementLookup['staticFunction']) === null || _a === void 0 ? void 0 : _a[functionName]; | ||
if (mockedFunction instanceof Function) { | ||
returnValue = mockedFunction.apply(mocked.mock, args); | ||
} | ||
trackFunctionCall(mocked, functionName, args, true); | ||
trackFunctionCall(mocked, 'staticFunction', functionName, args); | ||
return returnValue; | ||
}; | ||
mocked.mockConstructor[functionName] = functionReplacement; | ||
var staticFunctionLookup = (mocked.functionReplacementLookup['staticFunction'] = | ||
mocked.functionReplacementLookup['staticFunction'] || {}); | ||
staticFunctionLookup[functionName] = mockFunction; | ||
if (mocked.mockConstructor[functionName] == null) { | ||
mocked.mockConstructor[functionName] = functionReplacement; | ||
} | ||
mocked.staticFunctionCallLookup[functionName] = []; | ||
@@ -95,3 +110,3 @@ return mocked; | ||
return function (mocked) { | ||
return definePropertyImpl(mocked, 'getter', propertyName, false, getter, setter); | ||
return definePropertyImpl(mocked, 'getter', propertyName, getter, setter); | ||
}; | ||
@@ -110,40 +125,71 @@ } | ||
return function (mocked) { | ||
return definePropertyImpl(mocked, 'staticGetter', propertyName, true, getter, setter); | ||
return definePropertyImpl(mocked, 'staticGetter', propertyName, getter, setter); | ||
}; | ||
} | ||
exports.defineStaticProperty = defineStaticProperty; | ||
function definePropertyImpl(mocked, _type, propertyName, isStatic, getter, setter) { | ||
function definePropertyImpl(mocked, lookupType, propertyName, getter, setter) { | ||
var propertyGetter = function () { | ||
trackGetterCall(mocked, propertyName, isStatic); | ||
return getter ? getter() : undefined; | ||
var _a; | ||
trackGetterCall(mocked, lookupType, propertyName); | ||
var mockedFunction = (_a = mocked.functionReplacementLookup[lookupType]) === null || _a === void 0 ? void 0 : _a[propertyName]; | ||
return mockedFunction ? mockedFunction() : undefined; | ||
}; | ||
var setterLookupType; | ||
switch (lookupType) { | ||
case 'getter': | ||
setterLookupType = 'setter'; | ||
var getterLookup = (mocked.functionReplacementLookup['getter'] = | ||
mocked.functionReplacementLookup['getter'] || {}); | ||
getterLookup[propertyName] = getter; | ||
var setterLookup = (mocked.functionReplacementLookup['setter'] = | ||
mocked.functionReplacementLookup['setter'] || {}); | ||
setterLookup[propertyName] = setter; | ||
break; | ||
case 'staticGetter': | ||
var staticGetterLookup = (mocked.functionReplacementLookup['staticGetter'] = | ||
mocked.functionReplacementLookup['staticGetter'] || {}); | ||
staticGetterLookup[propertyName] = getter; | ||
var staticSetterLookup = (mocked.functionReplacementLookup['staticSetter'] = | ||
mocked.functionReplacementLookup['staticSetter'] || {}); | ||
staticSetterLookup[propertyName] = setter; | ||
setterLookupType = 'staticSetter'; | ||
break; | ||
} | ||
var setterProperty = propertyName; | ||
var propertySetter = function (value) { | ||
trackSetterCall(mocked, propertyName, value, isStatic); | ||
if (setter != null) { | ||
setter.apply(mocked.mock, [value]); | ||
var _a; | ||
trackSetterCall(mocked, setterLookupType, setterProperty, [value]); | ||
var mockedFunction = (_a = mocked.functionReplacementLookup[setterLookupType]) === null || _a === void 0 ? void 0 : _a[propertyName]; | ||
if (mockedFunction != null) { | ||
mockedFunction.apply(mocked.mock, [value]); | ||
} | ||
}; | ||
var object = isStatic ? mocked.mockConstructor : mocked.mock; | ||
Object.defineProperty(object, propertyName, { | ||
enumerable: true, | ||
get: propertyGetter, | ||
set: propertySetter, | ||
configurable: true, | ||
}); | ||
if (isStatic) { | ||
mocked.staticGetterCallLookup[propertyName] = []; | ||
mocked.staticSetterCallLookup[propertyName] = []; | ||
var target; | ||
helper_1.getLookup(mocked, lookupType)[propertyName] = []; | ||
switch (lookupType) { | ||
case 'staticGetter': | ||
target = mocked.mockConstructor; | ||
helper_1.getLookup(mocked, 'staticSetter')[setterProperty] = []; | ||
break; | ||
default: | ||
target = mocked.mock; | ||
helper_1.getLookup(mocked, 'setter')[setterProperty] = []; | ||
break; | ||
} | ||
else { | ||
mocked.getterCallLookup[propertyName] = []; | ||
mocked.setterCallLookup[propertyName] = []; | ||
if (Object.getOwnPropertyDescriptor(target, propertyName) == null) { | ||
Object.defineProperty(target, propertyName, { | ||
enumerable: true, | ||
get: propertyGetter, | ||
set: propertySetter, | ||
configurable: true, | ||
}); | ||
} | ||
return mocked; | ||
} | ||
function trackFunctionCall(mock, functionName, params, isStatic) { | ||
var lookup = isStatic ? mock.staticFunctionCallLookup : mock.functionCallLookup; | ||
function trackFunctionCall(mock, lookupType, functionName, params) { | ||
var lookup = helper_1.getLookup(mock, lookupType); | ||
trackCall(lookup, functionName, params); | ||
} | ||
function trackGetterCall(mock, propertyName, isStatic) { | ||
var lookup = isStatic ? mock.staticGetterCallLookup : mock.getterCallLookup; | ||
function trackGetterCall(mock, lookupType, propertyName) { | ||
var lookup = helper_1.getLookup(mock, lookupType); | ||
// it's easier to have an array of empty arrays than just keep track of a count | ||
@@ -153,12 +199,14 @@ // This allows us to use the same verification code as the setter and functions | ||
} | ||
function trackSetterCall(mock, propertyName, param, isStatic) { | ||
var lookup = isStatic ? mock.staticSetterCallLookup : mock.setterCallLookup; | ||
trackCall(lookup, propertyName, [param]); | ||
function trackSetterCall(mock, lookupType, propertyName, param) { | ||
var lookup = helper_1.getLookup(mock, lookupType); | ||
trackCall(lookup, propertyName, param); | ||
} | ||
function trackCall(lookup, name, params) { | ||
if (lookup[name] === undefined) { | ||
lookup[name] = []; | ||
var functionCalls = lookup[name]; | ||
if (functionCalls === undefined) { | ||
functionCalls = []; | ||
lookup[name] = functionCalls; | ||
} | ||
lookup[name].push(params); | ||
functionCalls.push(params); | ||
} | ||
//# sourceMappingURL=operators.js.map |
@@ -1,7 +0,7 @@ | ||
import { ConstructorFunction, FunctionName, FunctionParams, FunctionType, IFunctionVerifier, IFunctionWithParametersVerification, IJasmineCustomMatcherResult, IJestCustomMatcherResult, IMocked, IStrictFunctionVerification, ParameterMatcher, SetterTypes, VerifierTarget } from './contracts'; | ||
export declare type VerifierParams<T, C extends ConstructorFunction<T>, U extends FunctionType, K extends FunctionName<T, C, U>> = U extends SetterTypes ? [VerifierTarget<T, C, U>[K]] : FunctionParams<VerifierTarget<T, C, U>[K]>; | ||
export declare function createFunctionParameterVerifier<T, C extends ConstructorFunction<T>, U extends FunctionType, K extends FunctionName<T, C, U>>(mocked: IMocked<T, C>, type: U, functionName: K): IFunctionWithParametersVerification<VerifierParams<T, C, U, K>, T, U, C>; | ||
export declare function createFunctionVerifier<T, C extends ConstructorFunction<T>, U extends FunctionType, K extends FunctionName<T, C, U>>(mocked: IMocked<T, C>, type: U, functionName: K, parameterMatchers?: ParameterMatcher<any>[], strictCallCount?: boolean): IFunctionVerifier<T, U, C>; | ||
export declare function createStrictFunctionVerifier<T, C extends ConstructorFunction<T>, U extends FunctionType, K extends FunctionName<T, C, U>>(mocked: IMocked<T, C>, type: U, functionName: K, matchers?: ParameterMatcher<any>[]): IStrictFunctionVerification<T, U, C>; | ||
export declare function verifyParameters<T, C extends ConstructorFunction<T>, U extends FunctionType, K extends FunctionName<T, C, U>>(parameters: ParameterMatcher<any>[], mocked: IMocked<T, C>, functionName: K, type: U, equals: boolean): IStrictFunctionVerification<T, U, C>; | ||
export declare function verifyFunctionCalled<T, C extends ConstructorFunction<T>, U extends FunctionType>(times: number | undefined, verifier: IFunctionVerifier<T, U, C>): IJasmineCustomMatcherResult | IJestCustomMatcherResult; | ||
import { ConstructorFunction, FunctionName, FunctionParams, IFunctionVerifier, IFunctionWithParametersVerification, IJasmineCustomMatcherResult, IJestCustomMatcherResult, IMocked, IStrictFunctionVerification, LookupType, ParameterMatcher, SetterTypes, VerifierTarget } from './contracts'; | ||
export declare type VerifierParams<T, C extends ConstructorFunction<T>, U extends LookupType, K extends FunctionName<T, C, U>> = U extends SetterTypes ? [VerifierTarget<T, C, U>[K]] : FunctionParams<VerifierTarget<T, C, U>[K]>; | ||
export declare function createFunctionParameterVerifier<T, C extends ConstructorFunction<T>, U extends LookupType, K extends FunctionName<T, C, U>>(mocked: IMocked<T, C>, type: U, functionName: K): IFunctionWithParametersVerification<VerifierParams<T, C, U, K>, T, U, C>; | ||
export declare function createFunctionVerifier<T, C extends ConstructorFunction<T>, U extends LookupType, K extends FunctionName<T, C, U>>(mocked: IMocked<T, C>, type: U, functionName: K, parameterMatchers?: ParameterMatcher<any>[], strictCallCount?: boolean): IFunctionVerifier<T, U, C>; | ||
export declare function createStrictFunctionVerifier<T, C extends ConstructorFunction<T>, U extends LookupType, K extends FunctionName<T, C, U>>(mocked: IMocked<T, C>, type: U, functionName: K, matchers?: ParameterMatcher<any>[]): IStrictFunctionVerification<T, U, C>; | ||
export declare function verifyParameters<T, C extends ConstructorFunction<T>, U extends LookupType, K extends FunctionName<T, C, U>>(parameters: ParameterMatcher<any>[], mocked: IMocked<T, C>, functionName: K, type: U, equals: boolean): IStrictFunctionVerification<T, U, C>; | ||
export declare function verifyFunctionCalled<T, C extends ConstructorFunction<T>, U extends LookupType>(times: number | undefined, verifier: IFunctionVerifier<T, U, C>): IJasmineCustomMatcherResult | IJestCustomMatcherResult; |
@@ -17,3 +17,3 @@ "use strict"; | ||
function createFunctionParameterVerifier(mocked, type, functionName) { | ||
return __assign({}, createFunctionVerifier(mocked, type, functionName), { | ||
return __assign(__assign({}, createFunctionVerifier(mocked, type, functionName)), { | ||
/** | ||
@@ -57,3 +57,3 @@ * withParameters and withParametersEqualTo should have signatures: | ||
function createStrictFunctionVerifier(mocked, type, functionName, matchers) { | ||
return __assign({}, createFunctionVerifier(mocked, type, functionName, matchers), { strict: function () { return createFunctionVerifier(mocked, type, functionName, matchers, true); } }); | ||
return __assign(__assign({}, createFunctionVerifier(mocked, type, functionName, matchers)), { strict: function () { return createFunctionVerifier(mocked, type, functionName, matchers, true); } }); | ||
} | ||
@@ -83,9 +83,8 @@ exports.createStrictFunctionVerifier = createStrictFunctionVerifier; | ||
var strict = verifier.strictCallCount; | ||
var functionCalls; | ||
var expectationMessage; | ||
var errorMessageSetupFunction; | ||
var errorMessageDescription; | ||
var functionCalls = helper_1.getLookup(mock, type)[functionName]; | ||
switch (type) { | ||
case 'staticGetter': | ||
functionCalls = mock.staticGetterCallLookup[functionName]; | ||
expectationMessage = "Expected static property \"" + functionName + "\" getter to be called"; | ||
@@ -96,3 +95,2 @@ errorMessageSetupFunction = "Mock.setupStaticProperty()"; | ||
case 'staticSetter': | ||
functionCalls = mock.staticSetterCallLookup[functionName]; | ||
expectationMessage = "Expected static property \"" + functionName + "\" to be set"; | ||
@@ -103,3 +101,2 @@ errorMessageSetupFunction = "Mock.setupStaticProperty()"; | ||
case 'staticFunction': | ||
functionCalls = mock.staticFunctionCallLookup[functionName]; | ||
expectationMessage = "Expected static function \"" + functionName + "\" to be called"; | ||
@@ -110,3 +107,2 @@ errorMessageSetupFunction = "Mock.setupStaticFunction()"; | ||
case 'getter': | ||
functionCalls = mock.getterCallLookup[functionName]; | ||
expectationMessage = "Expected property \"" + functionName + "\" getter to be called"; | ||
@@ -117,3 +113,2 @@ errorMessageSetupFunction = "Mock.setupProperty()"; | ||
case 'setter': | ||
functionCalls = mock.setterCallLookup[functionName]; | ||
expectationMessage = "Expected property \"" + functionName + "\" to be set"; | ||
@@ -124,3 +119,2 @@ errorMessageSetupFunction = "Mock.setupProperty()"; | ||
default: | ||
functionCalls = mock.functionCallLookup[functionName]; | ||
expectationMessage = "Expected \"" + functionName + "\" to be called"; | ||
@@ -127,0 +121,0 @@ errorMessageSetupFunction = "Mock.setupFunction()"; |
var typedoc = typedoc || {}; | ||
typedoc.search = typedoc.search || {}; | ||
typedoc.search.data = {"kinds":{"32":"Variable","64":"Function","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","65536":"Type literal","2097152":"Object literal","4194304":"Type alias"},"rows":[{"id":0,"kind":64,"name":"replaceProperties","url":"globals.html#replaceproperties","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":1,"kind":32,"name":"mockImports","url":"globals.html#mockimports","classes":"tsd-kind-variable"},{"id":2,"kind":64,"name":"replacePropertiesBeforeEach","url":"globals.html#replacepropertiesbeforeeach","classes":"tsd-kind-function"},{"id":3,"kind":32,"name":"mockImportsBeforeEach","url":"globals.html#mockimportsbeforeeach","classes":"tsd-kind-variable"},{"id":4,"kind":4194304,"name":"WrappedModule","url":"globals.html#wrappedmodule","classes":"tsd-kind-type-alias"},{"id":5,"kind":65536,"name":"__type","url":"globals.html#wrappedmodule.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"WrappedModule"},{"id":6,"kind":64,"name":"isWrappedModule","url":"globals.html#iswrappedmodule","classes":"tsd-kind-function"},{"id":7,"kind":64,"name":"proxyModule","url":"globals.html#proxymodule","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":8,"kind":64,"name":"registerMock","url":"globals.html#registermock","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":9,"kind":64,"name":"reset","url":"globals.html#reset","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":10,"kind":64,"name":"proxyJestModule","url":"globals.html#proxyjestmodule","classes":"tsd-kind-function"},{"id":11,"kind":64,"name":"runningInJest","url":"globals.html#runninginjest","classes":"tsd-kind-function"},{"id":12,"kind":256,"name":"IParameterMatcher","url":"interfaces/iparametermatcher.html","classes":"tsd-kind-interface tsd-has-type-parameter"},{"id":13,"kind":1024,"name":"isExpectedValue","url":"interfaces/iparametermatcher.html#isexpectedvalue","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IParameterMatcher"},{"id":14,"kind":1024,"name":"expectedDisplayValue","url":"interfaces/iparametermatcher.html#expecteddisplayvalue","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IParameterMatcher"},{"id":15,"kind":1024,"name":"parameterToString","url":"interfaces/iparametermatcher.html#parametertostring","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IParameterMatcher"},{"id":16,"kind":256,"name":"IFunctionWithParametersVerification","url":"interfaces/ifunctionwithparametersverification.html","classes":"tsd-kind-interface tsd-has-type-parameter"},{"id":17,"kind":2048,"name":"withParameters","url":"interfaces/ifunctionwithparametersverification.html#withparameters","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"IFunctionWithParametersVerification"},{"id":18,"kind":2048,"name":"withParametersEqualTo","url":"interfaces/ifunctionwithparametersverification.html#withparametersequalto","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"IFunctionWithParametersVerification"},{"id":19,"kind":1024,"name":"type","url":"interfaces/ifunctionwithparametersverification.html#type","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IFunctionWithParametersVerification"},{"id":20,"kind":1024,"name":"functionName","url":"interfaces/ifunctionwithparametersverification.html#functionname","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IFunctionWithParametersVerification"},{"id":21,"kind":1024,"name":"parameterMatchers","url":"interfaces/ifunctionwithparametersverification.html#parametermatchers","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IFunctionWithParametersVerification"},{"id":22,"kind":1024,"name":"strictCallCount","url":"interfaces/ifunctionwithparametersverification.html#strictcallcount","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IFunctionWithParametersVerification"},{"id":23,"kind":2048,"name":"getMock","url":"interfaces/ifunctionwithparametersverification.html#getmock","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"IFunctionWithParametersVerification"},{"id":24,"kind":256,"name":"IStrictFunctionVerification","url":"interfaces/istrictfunctionverification.html","classes":"tsd-kind-interface tsd-has-type-parameter"},{"id":25,"kind":2048,"name":"strict","url":"interfaces/istrictfunctionverification.html#strict","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"IStrictFunctionVerification"},{"id":26,"kind":1024,"name":"type","url":"interfaces/istrictfunctionverification.html#type","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IStrictFunctionVerification"},{"id":27,"kind":1024,"name":"functionName","url":"interfaces/istrictfunctionverification.html#functionname","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IStrictFunctionVerification"},{"id":28,"kind":1024,"name":"parameterMatchers","url":"interfaces/istrictfunctionverification.html#parametermatchers","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IStrictFunctionVerification"},{"id":29,"kind":1024,"name":"strictCallCount","url":"interfaces/istrictfunctionverification.html#strictcallcount","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IStrictFunctionVerification"},{"id":30,"kind":2048,"name":"getMock","url":"interfaces/istrictfunctionverification.html#getmock","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"IStrictFunctionVerification"},{"id":31,"kind":256,"name":"IFunctionVerifier","url":"interfaces/ifunctionverifier.html","classes":"tsd-kind-interface tsd-has-type-parameter"},{"id":32,"kind":1024,"name":"type","url":"interfaces/ifunctionverifier.html#type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IFunctionVerifier"},{"id":33,"kind":1024,"name":"functionName","url":"interfaces/ifunctionverifier.html#functionname","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IFunctionVerifier"},{"id":34,"kind":1024,"name":"parameterMatchers","url":"interfaces/ifunctionverifier.html#parametermatchers","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IFunctionVerifier"},{"id":35,"kind":1024,"name":"strictCallCount","url":"interfaces/ifunctionverifier.html#strictcallcount","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IFunctionVerifier"},{"id":36,"kind":2048,"name":"getMock","url":"interfaces/ifunctionverifier.html#getmock","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"IFunctionVerifier"},{"id":37,"kind":256,"name":"IMocked","url":"interfaces/imocked.html","classes":"tsd-kind-interface tsd-has-type-parameter"},{"id":38,"kind":1024,"name":"mock","url":"interfaces/imocked.html#mock","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMocked"},{"id":39,"kind":1024,"name":"mockConstructor","url":"interfaces/imocked.html#mockconstructor","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMocked"},{"id":40,"kind":1024,"name":"functionCallLookup","url":"interfaces/imocked.html#functioncalllookup","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMocked"},{"id":41,"kind":1024,"name":"setterCallLookup","url":"interfaces/imocked.html#settercalllookup","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMocked"},{"id":42,"kind":1024,"name":"getterCallLookup","url":"interfaces/imocked.html#gettercalllookup","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMocked"},{"id":43,"kind":1024,"name":"staticFunctionCallLookup","url":"interfaces/imocked.html#staticfunctioncalllookup","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMocked"},{"id":44,"kind":1024,"name":"staticSetterCallLookup","url":"interfaces/imocked.html#staticsettercalllookup","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMocked"},{"id":45,"kind":1024,"name":"staticGetterCallLookup","url":"interfaces/imocked.html#staticgettercalllookup","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMocked"},{"id":46,"kind":2048,"name":"setup","url":"interfaces/imocked.html#setup","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"IMocked"},{"id":47,"kind":2048,"name":"setupFunction","url":"interfaces/imocked.html#setupfunction","classes":"tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter","parent":"IMocked"},{"id":48,"kind":2048,"name":"setupProperty","url":"interfaces/imocked.html#setupproperty","classes":"tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter","parent":"IMocked"},{"id":49,"kind":2048,"name":"defineProperty","url":"interfaces/imocked.html#defineproperty","classes":"tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter","parent":"IMocked"},{"id":50,"kind":2048,"name":"setupStaticFunction","url":"interfaces/imocked.html#setupstaticfunction","classes":"tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter","parent":"IMocked"},{"id":51,"kind":2048,"name":"setupStaticProperty","url":"interfaces/imocked.html#setupstaticproperty","classes":"tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter","parent":"IMocked"},{"id":52,"kind":2048,"name":"defineStaticProperty","url":"interfaces/imocked.html#definestaticproperty","classes":"tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter","parent":"IMocked"},{"id":53,"kind":2048,"name":"withFunction","url":"interfaces/imocked.html#withfunction","classes":"tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter","parent":"IMocked"},{"id":54,"kind":2048,"name":"withGetter","url":"interfaces/imocked.html#withgetter","classes":"tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter","parent":"IMocked"},{"id":55,"kind":2048,"name":"withSetter","url":"interfaces/imocked.html#withsetter","classes":"tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter","parent":"IMocked"},{"id":56,"kind":2048,"name":"withStaticFunction","url":"interfaces/imocked.html#withstaticfunction","classes":"tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter","parent":"IMocked"},{"id":57,"kind":2048,"name":"withStaticGetter","url":"interfaces/imocked.html#withstaticgetter","classes":"tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter","parent":"IMocked"},{"id":58,"kind":2048,"name":"withStaticSetter","url":"interfaces/imocked.html#withstaticsetter","classes":"tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter","parent":"IMocked"},{"id":59,"kind":256,"name":"IJestCustomMatcherResult","url":"interfaces/ijestcustommatcherresult.html","classes":"tsd-kind-interface"},{"id":60,"kind":1024,"name":"pass","url":"interfaces/ijestcustommatcherresult.html#pass","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IJestCustomMatcherResult"},{"id":61,"kind":1024,"name":"message","url":"interfaces/ijestcustommatcherresult.html#message","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IJestCustomMatcherResult"},{"id":62,"kind":65536,"name":"__type","url":"interfaces/ijestcustommatcherresult.html#message.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"IJestCustomMatcherResult.message"},{"id":63,"kind":256,"name":"IJasmineCustomMatcherResult","url":"interfaces/ijasminecustommatcherresult.html","classes":"tsd-kind-interface"},{"id":64,"kind":1024,"name":"pass","url":"interfaces/ijasminecustommatcherresult.html#pass","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IJasmineCustomMatcherResult"},{"id":65,"kind":1024,"name":"message","url":"interfaces/ijasminecustommatcherresult.html#message","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IJasmineCustomMatcherResult"},{"id":66,"kind":256,"name":"ICustomMatcher","url":"interfaces/icustommatcher.html","classes":"tsd-kind-interface"},{"id":67,"kind":2048,"name":"compare","url":"interfaces/icustommatcher.html#compare","classes":"tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter","parent":"ICustomMatcher"},{"id":68,"kind":2048,"name":"negativeCompare","url":"interfaces/icustommatcher.html#negativecompare","classes":"tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter","parent":"ICustomMatcher"},{"id":69,"kind":4194304,"name":"OperatorFunction","url":"globals.html#operatorfunction","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":70,"kind":65536,"name":"__type","url":"globals.html#operatorfunction.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"OperatorFunction"},{"id":71,"kind":4194304,"name":"MatchFunction","url":"globals.html#matchfunction","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":72,"kind":65536,"name":"__type","url":"globals.html#matchfunction.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"MatchFunction"},{"id":73,"kind":4194304,"name":"FunctionsOnly","url":"globals.html#functionsonly","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":74,"kind":4194304,"name":"ParameterMatcher","url":"globals.html#parametermatcher","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":75,"kind":4194304,"name":"FunctionParameterMatchers","url":"globals.html#functionparametermatchers","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":76,"kind":65536,"name":"__type","url":"globals.html#functionparametermatchers.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"FunctionParameterMatchers"},{"id":77,"kind":4194304,"name":"FunctionCallLookup","url":"globals.html#functioncalllookup","classes":"tsd-kind-type-alias"},{"id":78,"kind":65536,"name":"__type","url":"globals.html#functioncalllookup.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"FunctionCallLookup"},{"id":79,"kind":4194304,"name":"FunctionParams","url":"globals.html#functionparams","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":80,"kind":4194304,"name":"ConstructorFunction","url":"globals.html#constructorfunction","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":81,"kind":65536,"name":"__type","url":"globals.html#constructorfunction.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"ConstructorFunction"},{"id":82,"kind":4194304,"name":"StaticFunctionTypes","url":"globals.html#staticfunctiontypes","classes":"tsd-kind-type-alias"},{"id":83,"kind":4194304,"name":"InstanceFunctionTypes","url":"globals.html#instancefunctiontypes","classes":"tsd-kind-type-alias"},{"id":84,"kind":4194304,"name":"SetterTypes","url":"globals.html#settertypes","classes":"tsd-kind-type-alias"},{"id":85,"kind":4194304,"name":"VerifierTarget","url":"globals.html#verifiertarget","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":86,"kind":4194304,"name":"FunctionType","url":"globals.html#functiontype","classes":"tsd-kind-type-alias"},{"id":87,"kind":4194304,"name":"FunctionName","url":"globals.html#functionname","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":88,"kind":64,"name":"isParameterMatcher","url":"globals.html#isparametermatcher","classes":"tsd-kind-function"},{"id":89,"kind":64,"name":"toBeDefined","url":"globals.html#tobedefined","classes":"tsd-kind-function"},{"id":90,"kind":64,"name":"hasValue","url":"globals.html#hasvalue","classes":"tsd-kind-function"},{"id":91,"kind":64,"name":"toBe","url":"globals.html#tobe","classes":"tsd-kind-function"},{"id":92,"kind":64,"name":"toEqual","url":"globals.html#toequal","classes":"tsd-kind-function"},{"id":93,"kind":64,"name":"any","url":"globals.html#any","classes":"tsd-kind-function"},{"id":94,"kind":64,"name":"mapItemToString","url":"globals.html#mapitemtostring","classes":"tsd-kind-function"},{"id":95,"kind":4194304,"name":"VerifierParams","url":"globals.html#verifierparams","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":96,"kind":64,"name":"createFunctionParameterVerifier","url":"globals.html#createfunctionparameterverifier","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":97,"kind":64,"name":"createFunctionVerifier","url":"globals.html#createfunctionverifier","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":98,"kind":64,"name":"createStrictFunctionVerifier","url":"globals.html#createstrictfunctionverifier","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":99,"kind":64,"name":"verifyParameters","url":"globals.html#verifyparameters","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":100,"kind":64,"name":"verifyFunctionCalled","url":"globals.html#verifyfunctioncalled","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":101,"kind":2097152,"name":"matchers","url":"globals.html#matchers","classes":"tsd-kind-object-literal"},{"id":102,"kind":32,"name":"wasCalled","url":"globals.html#matchers.wascalled","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"matchers"},{"id":103,"kind":32,"name":"wasCalledOnce","url":"globals.html#matchers.wascalledonce","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"matchers"},{"id":104,"kind":32,"name":"wasNotCalled","url":"globals.html#matchers.wasnotcalled","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"matchers"},{"id":105,"kind":32,"name":"wasCalledAtLeastOnce","url":"globals.html#matchers.wascalledatleastonce","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"matchers"},{"id":106,"kind":64,"name":"addMatchers","url":"globals.html#addmatchers","classes":"tsd-kind-function"},{"id":107,"kind":64,"name":"setupFunction","url":"globals.html#setupfunction","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":108,"kind":64,"name":"setupStaticFunction","url":"globals.html#setupstaticfunction","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":109,"kind":64,"name":"setupProperty","url":"globals.html#setupproperty","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":110,"kind":64,"name":"setupStaticProperty","url":"globals.html#setupstaticproperty","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":111,"kind":64,"name":"defineProperty","url":"globals.html#defineproperty","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":112,"kind":64,"name":"defineStaticProperty","url":"globals.html#definestaticproperty","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":113,"kind":128,"name":"Mock","url":"classes/mock.html","classes":"tsd-kind-class"},{"id":114,"kind":2048,"name":"create","url":"classes/mock.html#create","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"Mock"},{"id":115,"kind":256,"name":"IMyService","url":"interfaces/imyservice.html","classes":"tsd-kind-interface"},{"id":116,"kind":1024,"name":"propOne","url":"interfaces/imyservice.html#propone","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMyService"},{"id":117,"kind":1024,"name":"propTwo","url":"interfaces/imyservice.html#proptwo","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMyService"},{"id":118,"kind":1024,"name":"propThree","url":"interfaces/imyservice.html#propthree","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMyService"},{"id":119,"kind":1024,"name":"functionOne","url":"interfaces/imyservice.html#functionone","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMyService"},{"id":120,"kind":65536,"name":"__type","url":"interfaces/imyservice.html#functionone.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"IMyService.functionOne"},{"id":121,"kind":1024,"name":"functionTwo","url":"interfaces/imyservice.html#functiontwo","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMyService"},{"id":122,"kind":65536,"name":"__type","url":"interfaces/imyservice.html#functiontwo.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"IMyService.functionTwo"},{"id":123,"kind":1024,"name":"functionThree","url":"interfaces/imyservice.html#functionthree","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMyService"},{"id":124,"kind":65536,"name":"__type","url":"interfaces/imyservice.html#functionthree.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"IMyService.functionThree"},{"id":125,"kind":128,"name":"MyService","url":"classes/myservice.html","classes":"tsd-kind-class"},{"id":126,"kind":2048,"name":"staticFunctionOne","url":"classes/myservice.html#staticfunctionone","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"MyService"},{"id":127,"kind":1024,"name":"staticPropOne","url":"classes/myservice.html#staticpropone","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-static","parent":"MyService"},{"id":128,"kind":1024,"name":"staticPropTwo","url":"classes/myservice.html#staticproptwo","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-static","parent":"MyService"},{"id":129,"kind":1024,"name":"propThree","url":"classes/myservice.html#propthree","classes":"tsd-kind-property tsd-parent-kind-class","parent":"MyService"},{"id":130,"kind":1024,"name":"propOne","url":"classes/myservice.html#propone","classes":"tsd-kind-property tsd-parent-kind-class","parent":"MyService"},{"id":131,"kind":1024,"name":"propTwo","url":"classes/myservice.html#proptwo","classes":"tsd-kind-property tsd-parent-kind-class","parent":"MyService"},{"id":132,"kind":512,"name":"constructor","url":"classes/myservice.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"MyService"},{"id":133,"kind":2048,"name":"functionTwo","url":"classes/myservice.html#functiontwo","classes":"tsd-kind-method tsd-parent-kind-class","parent":"MyService"},{"id":134,"kind":2048,"name":"functionOne","url":"classes/myservice.html#functionone","classes":"tsd-kind-method tsd-parent-kind-class","parent":"MyService"},{"id":135,"kind":2048,"name":"functionThree","url":"classes/myservice.html#functionthree","classes":"tsd-kind-method tsd-parent-kind-class","parent":"MyService"},{"id":136,"kind":64,"name":"someFunction","url":"globals.html#somefunction","classes":"tsd-kind-function"},{"id":137,"kind":64,"name":"someOtherFunction","url":"globals.html#someotherfunction","classes":"tsd-kind-function"},{"id":138,"kind":128,"name":"ClassWithInstanceArgument","url":"classes/classwithinstanceargument.html","classes":"tsd-kind-class"},{"id":139,"kind":512,"name":"constructor","url":"classes/classwithinstanceargument.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"ClassWithInstanceArgument"},{"id":140,"kind":1024,"name":"service","url":"classes/classwithinstanceargument.html#service","classes":"tsd-kind-property tsd-parent-kind-class","parent":"ClassWithInstanceArgument"},{"id":141,"kind":128,"name":"ClassWithConstructorArgument","url":"classes/classwithconstructorargument.html","classes":"tsd-kind-class"},{"id":142,"kind":1024,"name":"service","url":"classes/classwithconstructorargument.html#service","classes":"tsd-kind-property tsd-parent-kind-class","parent":"ClassWithConstructorArgument"},{"id":143,"kind":512,"name":"constructor","url":"classes/classwithconstructorargument.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"ClassWithConstructorArgument"},{"id":144,"kind":128,"name":"ClassUsingImports","url":"classes/classusingimports.html","classes":"tsd-kind-class"},{"id":145,"kind":1024,"name":"service","url":"classes/classusingimports.html#service","classes":"tsd-kind-property tsd-parent-kind-class","parent":"ClassUsingImports"},{"id":146,"kind":512,"name":"constructor","url":"classes/classusingimports.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"ClassUsingImports"},{"id":147,"kind":2048,"name":"someFunctionProxy","url":"classes/classusingimports.html#somefunctionproxy","classes":"tsd-kind-method tsd-parent-kind-class","parent":"ClassUsingImports"},{"id":148,"kind":128,"name":"SampleClassImport","url":"classes/sampleclassimport.html","classes":"tsd-kind-class"},{"id":149,"kind":2048,"name":"sampleFunction","url":"classes/sampleclassimport.html#samplefunction","classes":"tsd-kind-method tsd-parent-kind-class","parent":"SampleClassImport"},{"id":150,"kind":32,"name":"functionOneReturnValue","url":"globals.html#functiononereturnvalue","classes":"tsd-kind-variable"},{"id":151,"kind":32,"name":"functionTwoReturnValue","url":"globals.html#functiontworeturnvalue","classes":"tsd-kind-variable"},{"id":152,"kind":32,"name":"functionThreeReturnValue","url":"globals.html#functionthreereturnvalue","classes":"tsd-kind-variable"},{"id":153,"kind":32,"name":"classReturnValue","url":"globals.html#classreturnvalue","classes":"tsd-kind-variable"},{"id":154,"kind":64,"name":"sampleFunctionOne","url":"globals.html#samplefunctionone","classes":"tsd-kind-function"},{"id":155,"kind":64,"name":"sampleFunctionTwo","url":"globals.html#samplefunctiontwo","classes":"tsd-kind-function"},{"id":156,"kind":64,"name":"sampleFunctionThree","url":"globals.html#samplefunctionthree","classes":"tsd-kind-function"},{"id":157,"kind":128,"name":"SampleClass","url":"classes/sampleclass.html","classes":"tsd-kind-class"},{"id":158,"kind":2048,"name":"wrapFunctionOne","url":"classes/sampleclass.html#wrapfunctionone","classes":"tsd-kind-method tsd-parent-kind-class","parent":"SampleClass"},{"id":159,"kind":2048,"name":"wrapFunctionTwo","url":"classes/sampleclass.html#wrapfunctiontwo","classes":"tsd-kind-method tsd-parent-kind-class","parent":"SampleClass"},{"id":160,"kind":2048,"name":"wrapFunctionThree","url":"classes/sampleclass.html#wrapfunctionthree","classes":"tsd-kind-method tsd-parent-kind-class","parent":"SampleClass"},{"id":161,"kind":2048,"name":"valueFromClass","url":"classes/sampleclass.html#valuefromclass","classes":"tsd-kind-method tsd-parent-kind-class","parent":"SampleClass"},{"id":162,"kind":64,"name":"verifyFailure","url":"globals.html#verifyfailure","classes":"tsd-kind-function"},{"id":163,"kind":64,"name":"verifyJestFailure","url":"globals.html#verifyjestfailure","classes":"tsd-kind-function"}]}; | ||
typedoc.search.data = {"kinds":{"2":"Module","32":"Variable","64":"Function","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","65536":"Type literal","2097152":"Object literal","4194304":"Type alias"},"rows":[{"id":0,"kind":256,"name":"IImportReplacement","url":"interfaces/iimportreplacement.html","classes":"tsd-kind-interface tsd-has-type-parameter"},{"id":1,"kind":1024,"name":"package","url":"interfaces/iimportreplacement.html#package","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IImportReplacement"},{"id":2,"kind":1024,"name":"mocks","url":"interfaces/iimportreplacement.html#mocks","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IImportReplacement"},{"id":3,"kind":256,"name":"IImportCopy","url":"interfaces/iimportcopy.html","classes":"tsd-kind-interface tsd-has-type-parameter"},{"id":4,"kind":1024,"name":"packageWithReplacements","url":"interfaces/iimportcopy.html#packagewithreplacements","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IImportCopy"},{"id":5,"kind":1024,"name":"descriptors","url":"interfaces/iimportcopy.html#descriptors","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IImportCopy"},{"id":6,"kind":4194304,"name":"PropertyDescriptors","url":"globals.html#propertydescriptors","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":7,"kind":65536,"name":"__type","url":"globals.html#propertydescriptors.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"PropertyDescriptors"},{"id":8,"kind":64,"name":"replaceProperties","url":"globals.html#replaceproperties","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":9,"kind":32,"name":"mockImports","url":"globals.html#mockimports","classes":"tsd-kind-variable"},{"id":10,"kind":64,"name":"replacePropertiesBeforeEach","url":"globals.html#replacepropertiesbeforeeach","classes":"tsd-kind-function"},{"id":11,"kind":32,"name":"mockImportsBeforeEach","url":"globals.html#mockimportsbeforeeach","classes":"tsd-kind-variable"},{"id":12,"kind":64,"name":"getDescriptors","url":"globals.html#getdescriptors","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":13,"kind":64,"name":"getDescriptor","url":"globals.html#getdescriptor","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":14,"kind":64,"name":"replaceImports","url":"globals.html#replaceimports","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":15,"kind":64,"name":"revertImports","url":"globals.html#revertimports","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":16,"kind":4194304,"name":"WrappedModule","url":"globals.html#wrappedmodule","classes":"tsd-kind-type-alias"},{"id":17,"kind":65536,"name":"__type","url":"globals.html#wrappedmodule.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"WrappedModule"},{"id":18,"kind":32,"name":"___moduleId","url":"globals.html#wrappedmodule.__type.___moduleid","classes":"tsd-kind-variable tsd-parent-kind-type-literal","parent":"WrappedModule.__type"},{"id":19,"kind":64,"name":"isWrappedModule","url":"globals.html#iswrappedmodule","classes":"tsd-kind-function"},{"id":20,"kind":32,"name":"MockMap","url":"globals.html#mockmap","classes":"tsd-kind-variable"},{"id":21,"kind":64,"name":"proxyModule","url":"globals.html#proxymodule","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":22,"kind":64,"name":"registerMock","url":"globals.html#registermock","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":23,"kind":64,"name":"reset","url":"globals.html#reset","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":24,"kind":64,"name":"lookupMocksForModule","url":"globals.html#lookupmocksformodule","classes":"tsd-kind-function"},{"id":25,"kind":64,"name":"wrapFunction","url":"globals.html#wrapfunction","classes":"tsd-kind-function"},{"id":26,"kind":64,"name":"getMocked","url":"globals.html#getmocked","classes":"tsd-kind-function"},{"id":27,"kind":64,"name":"proxyJestModule","url":"globals.html#proxyjestmodule","classes":"tsd-kind-function"},{"id":28,"kind":64,"name":"runningInJest","url":"globals.html#runninginjest","classes":"tsd-kind-function"},{"id":29,"kind":256,"name":"IParameterMatcher","url":"interfaces/iparametermatcher.html","classes":"tsd-kind-interface tsd-has-type-parameter"},{"id":30,"kind":1024,"name":"isExpectedValue","url":"interfaces/iparametermatcher.html#isexpectedvalue","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IParameterMatcher"},{"id":31,"kind":1024,"name":"expectedDisplayValue","url":"interfaces/iparametermatcher.html#expecteddisplayvalue","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IParameterMatcher"},{"id":32,"kind":1024,"name":"parameterToString","url":"interfaces/iparametermatcher.html#parametertostring","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IParameterMatcher"},{"id":33,"kind":256,"name":"IFunctionWithParametersVerification","url":"interfaces/ifunctionwithparametersverification.html","classes":"tsd-kind-interface tsd-has-type-parameter"},{"id":34,"kind":2048,"name":"withParameters","url":"interfaces/ifunctionwithparametersverification.html#withparameters","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"IFunctionWithParametersVerification"},{"id":35,"kind":2048,"name":"withParametersEqualTo","url":"interfaces/ifunctionwithparametersverification.html#withparametersequalto","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"IFunctionWithParametersVerification"},{"id":36,"kind":1024,"name":"type","url":"interfaces/ifunctionwithparametersverification.html#type","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IFunctionWithParametersVerification"},{"id":37,"kind":1024,"name":"functionName","url":"interfaces/ifunctionwithparametersverification.html#functionname","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IFunctionWithParametersVerification"},{"id":38,"kind":1024,"name":"parameterMatchers","url":"interfaces/ifunctionwithparametersverification.html#parametermatchers","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IFunctionWithParametersVerification"},{"id":39,"kind":1024,"name":"strictCallCount","url":"interfaces/ifunctionwithparametersverification.html#strictcallcount","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IFunctionWithParametersVerification"},{"id":40,"kind":2048,"name":"getMock","url":"interfaces/ifunctionwithparametersverification.html#getmock","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"IFunctionWithParametersVerification"},{"id":41,"kind":256,"name":"IStrictFunctionVerification","url":"interfaces/istrictfunctionverification.html","classes":"tsd-kind-interface tsd-has-type-parameter"},{"id":42,"kind":2048,"name":"strict","url":"interfaces/istrictfunctionverification.html#strict","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"IStrictFunctionVerification"},{"id":43,"kind":1024,"name":"type","url":"interfaces/istrictfunctionverification.html#type","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IStrictFunctionVerification"},{"id":44,"kind":1024,"name":"functionName","url":"interfaces/istrictfunctionverification.html#functionname","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IStrictFunctionVerification"},{"id":45,"kind":1024,"name":"parameterMatchers","url":"interfaces/istrictfunctionverification.html#parametermatchers","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IStrictFunctionVerification"},{"id":46,"kind":1024,"name":"strictCallCount","url":"interfaces/istrictfunctionverification.html#strictcallcount","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IStrictFunctionVerification"},{"id":47,"kind":2048,"name":"getMock","url":"interfaces/istrictfunctionverification.html#getmock","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"IStrictFunctionVerification"},{"id":48,"kind":256,"name":"IFunctionVerifier","url":"interfaces/ifunctionverifier.html","classes":"tsd-kind-interface tsd-has-type-parameter"},{"id":49,"kind":1024,"name":"type","url":"interfaces/ifunctionverifier.html#type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IFunctionVerifier"},{"id":50,"kind":1024,"name":"functionName","url":"interfaces/ifunctionverifier.html#functionname","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IFunctionVerifier"},{"id":51,"kind":1024,"name":"parameterMatchers","url":"interfaces/ifunctionverifier.html#parametermatchers","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IFunctionVerifier"},{"id":52,"kind":1024,"name":"strictCallCount","url":"interfaces/ifunctionverifier.html#strictcallcount","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IFunctionVerifier"},{"id":53,"kind":2048,"name":"getMock","url":"interfaces/ifunctionverifier.html#getmock","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"IFunctionVerifier"},{"id":54,"kind":256,"name":"IMocked","url":"interfaces/imocked.html","classes":"tsd-kind-interface tsd-has-type-parameter"},{"id":55,"kind":1024,"name":"mock","url":"interfaces/imocked.html#mock","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMocked"},{"id":56,"kind":1024,"name":"mockConstructor","url":"interfaces/imocked.html#mockconstructor","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMocked"},{"id":57,"kind":1024,"name":"functionCallLookup","url":"interfaces/imocked.html#functioncalllookup","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMocked"},{"id":58,"kind":1024,"name":"setterCallLookup","url":"interfaces/imocked.html#settercalllookup","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMocked"},{"id":59,"kind":1024,"name":"getterCallLookup","url":"interfaces/imocked.html#gettercalllookup","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMocked"},{"id":60,"kind":1024,"name":"staticFunctionCallLookup","url":"interfaces/imocked.html#staticfunctioncalllookup","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMocked"},{"id":61,"kind":1024,"name":"staticSetterCallLookup","url":"interfaces/imocked.html#staticsettercalllookup","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMocked"},{"id":62,"kind":1024,"name":"staticGetterCallLookup","url":"interfaces/imocked.html#staticgettercalllookup","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMocked"},{"id":63,"kind":1024,"name":"functionReplacementLookup","url":"interfaces/imocked.html#functionreplacementlookup","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMocked"},{"id":64,"kind":2048,"name":"setup","url":"interfaces/imocked.html#setup","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"IMocked"},{"id":65,"kind":2048,"name":"setupFunction","url":"interfaces/imocked.html#setupfunction","classes":"tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter","parent":"IMocked"},{"id":66,"kind":2048,"name":"setupProperty","url":"interfaces/imocked.html#setupproperty","classes":"tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter","parent":"IMocked"},{"id":67,"kind":2048,"name":"defineProperty","url":"interfaces/imocked.html#defineproperty","classes":"tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter","parent":"IMocked"},{"id":68,"kind":2048,"name":"setupStaticFunction","url":"interfaces/imocked.html#setupstaticfunction","classes":"tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter","parent":"IMocked"},{"id":69,"kind":2048,"name":"setupStaticProperty","url":"interfaces/imocked.html#setupstaticproperty","classes":"tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter","parent":"IMocked"},{"id":70,"kind":2048,"name":"defineStaticProperty","url":"interfaces/imocked.html#definestaticproperty","classes":"tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter","parent":"IMocked"},{"id":71,"kind":2048,"name":"withFunction","url":"interfaces/imocked.html#withfunction","classes":"tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter","parent":"IMocked"},{"id":72,"kind":2048,"name":"withGetter","url":"interfaces/imocked.html#withgetter","classes":"tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter","parent":"IMocked"},{"id":73,"kind":2048,"name":"withSetter","url":"interfaces/imocked.html#withsetter","classes":"tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter","parent":"IMocked"},{"id":74,"kind":2048,"name":"withStaticFunction","url":"interfaces/imocked.html#withstaticfunction","classes":"tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter","parent":"IMocked"},{"id":75,"kind":2048,"name":"withStaticGetter","url":"interfaces/imocked.html#withstaticgetter","classes":"tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter","parent":"IMocked"},{"id":76,"kind":2048,"name":"withStaticSetter","url":"interfaces/imocked.html#withstaticsetter","classes":"tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter","parent":"IMocked"},{"id":77,"kind":256,"name":"IJestCustomMatcherResult","url":"interfaces/ijestcustommatcherresult.html","classes":"tsd-kind-interface"},{"id":78,"kind":1024,"name":"pass","url":"interfaces/ijestcustommatcherresult.html#pass","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IJestCustomMatcherResult"},{"id":79,"kind":1024,"name":"message","url":"interfaces/ijestcustommatcherresult.html#message","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IJestCustomMatcherResult"},{"id":80,"kind":65536,"name":"__type","url":"interfaces/ijestcustommatcherresult.html#message.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IJestCustomMatcherResult.message"},{"id":81,"kind":256,"name":"IJasmineCustomMatcherResult","url":"interfaces/ijasminecustommatcherresult.html","classes":"tsd-kind-interface"},{"id":82,"kind":1024,"name":"pass","url":"interfaces/ijasminecustommatcherresult.html#pass","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IJasmineCustomMatcherResult"},{"id":83,"kind":1024,"name":"message","url":"interfaces/ijasminecustommatcherresult.html#message","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IJasmineCustomMatcherResult"},{"id":84,"kind":256,"name":"ICustomMatcher","url":"interfaces/icustommatcher.html","classes":"tsd-kind-interface"},{"id":85,"kind":2048,"name":"compare","url":"interfaces/icustommatcher.html#compare","classes":"tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter","parent":"ICustomMatcher"},{"id":86,"kind":2048,"name":"negativeCompare","url":"interfaces/icustommatcher.html#negativecompare","classes":"tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter","parent":"ICustomMatcher"},{"id":87,"kind":4194304,"name":"OperatorFunction","url":"globals.html#operatorfunction","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":88,"kind":65536,"name":"__type","url":"globals.html#operatorfunction.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"OperatorFunction"},{"id":89,"kind":4194304,"name":"MatchFunction","url":"globals.html#matchfunction","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":90,"kind":65536,"name":"__type","url":"globals.html#matchfunction.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"MatchFunction"},{"id":91,"kind":4194304,"name":"FunctionsOnly","url":"globals.html#functionsonly","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":92,"kind":4194304,"name":"PropertiesOnly","url":"globals.html#propertiesonly","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":93,"kind":4194304,"name":"ParameterMatcher","url":"globals.html#parametermatcher","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":94,"kind":4194304,"name":"FunctionOrConstructor","url":"globals.html#functionorconstructor","classes":"tsd-kind-type-alias"},{"id":95,"kind":4194304,"name":"FunctionParameterMatchers","url":"globals.html#functionparametermatchers","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":96,"kind":65536,"name":"__type","url":"globals.html#functionparametermatchers.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"FunctionParameterMatchers"},{"id":97,"kind":4194304,"name":"FunctionCallLookup","url":"globals.html#functioncalllookup","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":98,"kind":65536,"name":"__type","url":"globals.html#functioncalllookup.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"FunctionCallLookup"},{"id":99,"kind":4194304,"name":"LookupParams","url":"globals.html#lookupparams","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":100,"kind":4194304,"name":"FunctionParams","url":"globals.html#functionparams","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":101,"kind":4194304,"name":"ConstructorFunction","url":"globals.html#constructorfunction","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":102,"kind":65536,"name":"__type","url":"globals.html#constructorfunction.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"ConstructorFunction"},{"id":103,"kind":4194304,"name":"StaticLookupTypes","url":"globals.html#staticlookuptypes","classes":"tsd-kind-type-alias"},{"id":104,"kind":4194304,"name":"InstanceLookupTypes","url":"globals.html#instancelookuptypes","classes":"tsd-kind-type-alias"},{"id":105,"kind":4194304,"name":"SetterTypes","url":"globals.html#settertypes","classes":"tsd-kind-type-alias"},{"id":106,"kind":4194304,"name":"GetterTypes","url":"globals.html#gettertypes","classes":"tsd-kind-type-alias"},{"id":107,"kind":4194304,"name":"FunctionTypes","url":"globals.html#functiontypes","classes":"tsd-kind-type-alias"},{"id":108,"kind":4194304,"name":"LookupType","url":"globals.html#lookuptype","classes":"tsd-kind-type-alias"},{"id":109,"kind":4194304,"name":"VerifierTarget","url":"globals.html#verifiertarget","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":110,"kind":4194304,"name":"FunctionName","url":"globals.html#functionname","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":111,"kind":64,"name":"isParameterMatcher","url":"globals.html#isparametermatcher","classes":"tsd-kind-function"},{"id":112,"kind":64,"name":"toBeDefined","url":"globals.html#tobedefined","classes":"tsd-kind-function"},{"id":113,"kind":64,"name":"hasValue","url":"globals.html#hasvalue","classes":"tsd-kind-function"},{"id":114,"kind":64,"name":"toBe","url":"globals.html#tobe","classes":"tsd-kind-function"},{"id":115,"kind":64,"name":"toEqual","url":"globals.html#toequal","classes":"tsd-kind-function"},{"id":116,"kind":64,"name":"any","url":"globals.html#any","classes":"tsd-kind-function"},{"id":117,"kind":64,"name":"mapItemToString","url":"globals.html#mapitemtostring","classes":"tsd-kind-function"},{"id":118,"kind":32,"name":"functionStringRegExp","url":"globals.html#functionstringregexp","classes":"tsd-kind-variable"},{"id":119,"kind":32,"name":"UndefinedReplacementString","url":"globals.html#undefinedreplacementstring","classes":"tsd-kind-variable"},{"id":120,"kind":32,"name":"ReplaceUndefinedRegExp","url":"globals.html#replaceundefinedregexp","classes":"tsd-kind-variable"},{"id":121,"kind":64,"name":"replaceValue","url":"globals.html#replacevalue","classes":"tsd-kind-function"},{"id":122,"kind":4194304,"name":"VerifierParams","url":"globals.html#verifierparams","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":123,"kind":64,"name":"createFunctionParameterVerifier","url":"globals.html#createfunctionparameterverifier","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":124,"kind":64,"name":"createFunctionVerifier","url":"globals.html#createfunctionverifier","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":125,"kind":64,"name":"createStrictFunctionVerifier","url":"globals.html#createstrictfunctionverifier","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":126,"kind":64,"name":"verifyParameters","url":"globals.html#verifyparameters","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":127,"kind":64,"name":"mapParameterToMatcher","url":"globals.html#mapparametertomatcher","classes":"tsd-kind-function"},{"id":128,"kind":64,"name":"verifyFunctionCalled","url":"globals.html#verifyfunctioncalled","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":129,"kind":64,"name":"createCustomMatcherFailResult","url":"globals.html#createcustommatcherfailresult","classes":"tsd-kind-function"},{"id":130,"kind":64,"name":"buildWithParamsString","url":"globals.html#buildwithparamsstring","classes":"tsd-kind-function"},{"id":131,"kind":64,"name":"buildAllCallsString","url":"globals.html#buildallcallsstring","classes":"tsd-kind-function"},{"id":132,"kind":64,"name":"expectedParametersToString","url":"globals.html#expectedparameterstostring","classes":"tsd-kind-function"},{"id":133,"kind":64,"name":"functionCallToString","url":"globals.html#functioncalltostring","classes":"tsd-kind-function"},{"id":134,"kind":64,"name":"isMatcherResultArray","url":"globals.html#ismatcherresultarray","classes":"tsd-kind-function"},{"id":135,"kind":64,"name":"isMatcherResult","url":"globals.html#ismatcherresult","classes":"tsd-kind-function"},{"id":136,"kind":64,"name":"matchParameters","url":"globals.html#matchparameters","classes":"tsd-kind-function"},{"id":137,"kind":64,"name":"evaluateParameterMatcher","url":"globals.html#evaluateparametermatcher","classes":"tsd-kind-function"},{"id":138,"kind":2,"name":"__global","url":"modules/__global.html","classes":"tsd-kind-module"},{"id":139,"kind":2,"name":"jasmine","url":"modules/__global.jasmine.html","classes":"tsd-kind-module tsd-parent-kind-module","parent":"__global"},{"id":140,"kind":256,"name":"Matchers","url":"interfaces/__global.jasmine.matchers.html","classes":"tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter","parent":"__global.jasmine"},{"id":141,"kind":1024,"name":"wasCalled","url":"interfaces/__global.jasmine.matchers.html#wascalled","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"__global.jasmine.Matchers"},{"id":142,"kind":65536,"name":"__type","url":"interfaces/__global.jasmine.matchers.html#wascalled.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"__global.jasmine.Matchers.wasCalled"},{"id":143,"kind":1024,"name":"wasCalledOnce","url":"interfaces/__global.jasmine.matchers.html#wascalledonce","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"__global.jasmine.Matchers"},{"id":144,"kind":65536,"name":"__type","url":"interfaces/__global.jasmine.matchers.html#wascalledonce.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"__global.jasmine.Matchers.wasCalledOnce"},{"id":145,"kind":1024,"name":"wasNotCalled","url":"interfaces/__global.jasmine.matchers.html#wasnotcalled","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"__global.jasmine.Matchers"},{"id":146,"kind":65536,"name":"__type","url":"interfaces/__global.jasmine.matchers.html#wasnotcalled.__type-3","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"__global.jasmine.Matchers.wasNotCalled"},{"id":147,"kind":1024,"name":"wasCalledAtLeastOnce","url":"interfaces/__global.jasmine.matchers.html#wascalledatleastonce","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"__global.jasmine.Matchers"},{"id":148,"kind":65536,"name":"__type","url":"interfaces/__global.jasmine.matchers.html#wascalledatleastonce.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"__global.jasmine.Matchers.wasCalledAtLeastOnce"},{"id":149,"kind":2,"name":"jest","url":"modules/__global.jest.html","classes":"tsd-kind-module tsd-parent-kind-module","parent":"__global"},{"id":150,"kind":256,"name":"Matchers","url":"interfaces/__global.jest.matchers.html","classes":"tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter","parent":"__global.jest"},{"id":151,"kind":1024,"name":"wasCalled","url":"interfaces/__global.jest.matchers.html#wascalled","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"__global.jest.Matchers"},{"id":152,"kind":65536,"name":"__type","url":"interfaces/__global.jest.matchers.html#wascalled.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"__global.jest.Matchers.wasCalled"},{"id":153,"kind":1024,"name":"wasCalledOnce","url":"interfaces/__global.jest.matchers.html#wascalledonce","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"__global.jest.Matchers"},{"id":154,"kind":65536,"name":"__type","url":"interfaces/__global.jest.matchers.html#wascalledonce.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"__global.jest.Matchers.wasCalledOnce"},{"id":155,"kind":1024,"name":"wasNotCalled","url":"interfaces/__global.jest.matchers.html#wasnotcalled","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"__global.jest.Matchers"},{"id":156,"kind":65536,"name":"__type","url":"interfaces/__global.jest.matchers.html#wasnotcalled.__type-3","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"__global.jest.Matchers.wasNotCalled"},{"id":157,"kind":1024,"name":"wasCalledAtLeastOnce","url":"interfaces/__global.jest.matchers.html#wascalledatleastonce","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"__global.jest.Matchers"},{"id":158,"kind":65536,"name":"__type","url":"interfaces/__global.jest.matchers.html#wascalledatleastonce.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"__global.jest.Matchers.wasCalledAtLeastOnce"},{"id":159,"kind":2097152,"name":"matchers","url":"globals.html#matchers","classes":"tsd-kind-object-literal"},{"id":160,"kind":32,"name":"wasCalled","url":"globals.html#matchers.wascalled","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"matchers"},{"id":161,"kind":32,"name":"wasCalledOnce","url":"globals.html#matchers.wascalledonce","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"matchers"},{"id":162,"kind":32,"name":"wasNotCalled","url":"globals.html#matchers.wasnotcalled","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"matchers"},{"id":163,"kind":32,"name":"wasCalledAtLeastOnce","url":"globals.html#matchers.wascalledatleastonce","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"matchers"},{"id":164,"kind":64,"name":"addMatchers","url":"globals.html#addmatchers","classes":"tsd-kind-function"},{"id":165,"kind":64,"name":"wasCalled","url":"globals.html#wascalled","classes":"tsd-kind-function"},{"id":166,"kind":64,"name":"wasCalledOnce","url":"globals.html#wascalledonce","classes":"tsd-kind-function"},{"id":167,"kind":64,"name":"wasNotCalled","url":"globals.html#wasnotcalled","classes":"tsd-kind-function"},{"id":168,"kind":64,"name":"wasCalledAtLeastOnce","url":"globals.html#wascalledatleastonce","classes":"tsd-kind-function"},{"id":169,"kind":64,"name":"setupFunction","url":"globals.html#setupfunction","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":170,"kind":64,"name":"setupStaticFunction","url":"globals.html#setupstaticfunction","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":171,"kind":64,"name":"setupProperty","url":"globals.html#setupproperty","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":172,"kind":64,"name":"setupStaticProperty","url":"globals.html#setupstaticproperty","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":173,"kind":64,"name":"defineProperty","url":"globals.html#defineproperty","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":174,"kind":64,"name":"defineStaticProperty","url":"globals.html#definestaticproperty","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":175,"kind":64,"name":"definePropertyImpl","url":"globals.html#definepropertyimpl","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":176,"kind":64,"name":"trackFunctionCall","url":"globals.html#trackfunctioncall","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":177,"kind":64,"name":"trackGetterCall","url":"globals.html#trackgettercall","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":178,"kind":64,"name":"trackSetterCall","url":"globals.html#tracksettercall","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":179,"kind":64,"name":"trackCall","url":"globals.html#trackcall","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":180,"kind":128,"name":"Mock","url":"classes/mock.html","classes":"tsd-kind-class"},{"id":181,"kind":2048,"name":"create","url":"classes/mock.html#create","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"Mock"},{"id":182,"kind":64,"name":"getLookup","url":"globals.html#getlookup","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":183,"kind":32,"name":"context","url":"globals.html#context","classes":"tsd-kind-variable"},{"id":184,"kind":256,"name":"IMyService","url":"interfaces/imyservice.html","classes":"tsd-kind-interface"},{"id":185,"kind":1024,"name":"propOne","url":"interfaces/imyservice.html#propone","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMyService"},{"id":186,"kind":1024,"name":"propTwo","url":"interfaces/imyservice.html#proptwo","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMyService"},{"id":187,"kind":1024,"name":"propThree","url":"interfaces/imyservice.html#propthree","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMyService"},{"id":188,"kind":1024,"name":"functionOne","url":"interfaces/imyservice.html#functionone","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMyService"},{"id":189,"kind":65536,"name":"__type","url":"interfaces/imyservice.html#functionone.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IMyService.functionOne"},{"id":190,"kind":1024,"name":"functionTwo","url":"interfaces/imyservice.html#functiontwo","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMyService"},{"id":191,"kind":65536,"name":"__type","url":"interfaces/imyservice.html#functiontwo.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IMyService.functionTwo"},{"id":192,"kind":1024,"name":"functionThree","url":"interfaces/imyservice.html#functionthree","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMyService"},{"id":193,"kind":65536,"name":"__type","url":"interfaces/imyservice.html#functionthree.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IMyService.functionThree"},{"id":194,"kind":128,"name":"MyService","url":"classes/myservice.html","classes":"tsd-kind-class"},{"id":195,"kind":2048,"name":"staticFunctionOne","url":"classes/myservice.html#staticfunctionone","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"MyService"},{"id":196,"kind":1024,"name":"staticPropOne","url":"classes/myservice.html#staticpropone","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-static","parent":"MyService"},{"id":197,"kind":1024,"name":"staticPropTwo","url":"classes/myservice.html#staticproptwo","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-static","parent":"MyService"},{"id":198,"kind":1024,"name":"propThree","url":"classes/myservice.html#propthree","classes":"tsd-kind-property tsd-parent-kind-class","parent":"MyService"},{"id":199,"kind":1024,"name":"propOne","url":"classes/myservice.html#propone","classes":"tsd-kind-property tsd-parent-kind-class","parent":"MyService"},{"id":200,"kind":1024,"name":"propTwo","url":"classes/myservice.html#proptwo","classes":"tsd-kind-property tsd-parent-kind-class","parent":"MyService"},{"id":201,"kind":512,"name":"constructor","url":"classes/myservice.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"MyService"},{"id":202,"kind":2048,"name":"functionTwo","url":"classes/myservice.html#functiontwo","classes":"tsd-kind-method tsd-parent-kind-class","parent":"MyService"},{"id":203,"kind":2048,"name":"functionOne","url":"classes/myservice.html#functionone","classes":"tsd-kind-method tsd-parent-kind-class","parent":"MyService"},{"id":204,"kind":2048,"name":"functionThree","url":"classes/myservice.html#functionthree","classes":"tsd-kind-method tsd-parent-kind-class","parent":"MyService"},{"id":205,"kind":64,"name":"someFunction","url":"globals.html#somefunction","classes":"tsd-kind-function"},{"id":206,"kind":64,"name":"someOtherFunction","url":"globals.html#someotherfunction","classes":"tsd-kind-function"},{"id":207,"kind":128,"name":"ClassWithInstanceArgument","url":"classes/classwithinstanceargument.html","classes":"tsd-kind-class"},{"id":208,"kind":512,"name":"constructor","url":"classes/classwithinstanceargument.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"ClassWithInstanceArgument"},{"id":209,"kind":1024,"name":"service","url":"classes/classwithinstanceargument.html#service","classes":"tsd-kind-property tsd-parent-kind-class","parent":"ClassWithInstanceArgument"},{"id":210,"kind":128,"name":"ClassWithConstructorArgument","url":"classes/classwithconstructorargument.html","classes":"tsd-kind-class"},{"id":211,"kind":1024,"name":"service","url":"classes/classwithconstructorargument.html#service","classes":"tsd-kind-property tsd-parent-kind-class","parent":"ClassWithConstructorArgument"},{"id":212,"kind":512,"name":"constructor","url":"classes/classwithconstructorargument.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"ClassWithConstructorArgument"},{"id":213,"kind":128,"name":"ClassUsingImports","url":"classes/classusingimports.html","classes":"tsd-kind-class"},{"id":214,"kind":1024,"name":"service","url":"classes/classusingimports.html#service","classes":"tsd-kind-property tsd-parent-kind-class","parent":"ClassUsingImports"},{"id":215,"kind":512,"name":"constructor","url":"classes/classusingimports.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"ClassUsingImports"},{"id":216,"kind":2048,"name":"someFunctionProxy","url":"classes/classusingimports.html#somefunctionproxy","classes":"tsd-kind-method tsd-parent-kind-class","parent":"ClassUsingImports"},{"id":217,"kind":128,"name":"SampleClassImport","url":"classes/sampleclassimport.html","classes":"tsd-kind-class"},{"id":218,"kind":2048,"name":"sampleFunction","url":"classes/sampleclassimport.html#samplefunction","classes":"tsd-kind-method tsd-parent-kind-class","parent":"SampleClassImport"},{"id":219,"kind":32,"name":"functionOneReturnValue","url":"globals.html#functiononereturnvalue","classes":"tsd-kind-variable"},{"id":220,"kind":32,"name":"functionTwoReturnValue","url":"globals.html#functiontworeturnvalue","classes":"tsd-kind-variable"},{"id":221,"kind":32,"name":"functionThreeReturnValue","url":"globals.html#functionthreereturnvalue","classes":"tsd-kind-variable"},{"id":222,"kind":32,"name":"classReturnValue","url":"globals.html#classreturnvalue","classes":"tsd-kind-variable"},{"id":223,"kind":64,"name":"sampleFunctionOne","url":"globals.html#samplefunctionone","classes":"tsd-kind-function"},{"id":224,"kind":64,"name":"sampleFunctionTwo","url":"globals.html#samplefunctiontwo","classes":"tsd-kind-function"},{"id":225,"kind":64,"name":"sampleFunctionThree","url":"globals.html#samplefunctionthree","classes":"tsd-kind-function"},{"id":226,"kind":128,"name":"SampleClass","url":"classes/sampleclass.html","classes":"tsd-kind-class"},{"id":227,"kind":2048,"name":"wrapFunctionOne","url":"classes/sampleclass.html#wrapfunctionone","classes":"tsd-kind-method tsd-parent-kind-class","parent":"SampleClass"},{"id":228,"kind":2048,"name":"wrapFunctionTwo","url":"classes/sampleclass.html#wrapfunctiontwo","classes":"tsd-kind-method tsd-parent-kind-class","parent":"SampleClass"},{"id":229,"kind":2048,"name":"wrapFunctionThree","url":"classes/sampleclass.html#wrapfunctionthree","classes":"tsd-kind-method tsd-parent-kind-class","parent":"SampleClass"},{"id":230,"kind":2048,"name":"valueFromClass","url":"classes/sampleclass.html#valuefromclass","classes":"tsd-kind-method tsd-parent-kind-class","parent":"SampleClass"},{"id":231,"kind":64,"name":"verifyFailure","url":"globals.html#verifyfailure","classes":"tsd-kind-function"},{"id":232,"kind":64,"name":"verifyJestFailure","url":"globals.html#verifyjestfailure","classes":"tsd-kind-function"},{"id":233,"kind":128,"name":"SampleMockedClass","url":"classes/samplemockedclass.html","classes":"tsd-kind-class"},{"id":234,"kind":1024,"name":"propertyOne","url":"classes/samplemockedclass.html#propertyone-1","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-static","parent":"SampleMockedClass"},{"id":235,"kind":1024,"name":"propertyTwo","url":"classes/samplemockedclass.html#propertytwo-1","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-static","parent":"SampleMockedClass"},{"id":236,"kind":1024,"name":"propertyOne","url":"classes/samplemockedclass.html#propertyone","classes":"tsd-kind-property tsd-parent-kind-class","parent":"SampleMockedClass"},{"id":237,"kind":512,"name":"constructor","url":"classes/samplemockedclass.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"SampleMockedClass"},{"id":238,"kind":2048,"name":"functionWithNoParamsAndNoReturn","url":"classes/samplemockedclass.html#functionwithnoparamsandnoreturn-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"SampleMockedClass"},{"id":239,"kind":2048,"name":"functionWithNoParamsAndNoReturn","url":"classes/samplemockedclass.html#functionwithnoparamsandnoreturn","classes":"tsd-kind-method tsd-parent-kind-class","parent":"SampleMockedClass"},{"id":240,"kind":2048,"name":"functionWithNoParamsAndReturnType","url":"classes/samplemockedclass.html#functionwithnoparamsandreturntype-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"SampleMockedClass"},{"id":241,"kind":2048,"name":"functionWithParamsAndNoReturn","url":"classes/samplemockedclass.html#functionwithparamsandnoreturn-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"SampleMockedClass"},{"id":242,"kind":2048,"name":"functionWithParamsAndReturn","url":"classes/samplemockedclass.html#functionwithparamsandreturn-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"SampleMockedClass"},{"id":243,"kind":2048,"name":"functionWithComplexParam","url":"classes/samplemockedclass.html#functionwithcomplexparam-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"SampleMockedClass"},{"id":244,"kind":2048,"name":"doStuff","url":"classes/samplemockedclass.html#dostuff","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"SampleMockedClass"},{"id":245,"kind":2048,"name":"doStuffWithParams","url":"classes/samplemockedclass.html#dostuffwithparams","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"SampleMockedClass"},{"id":246,"kind":1024,"name":"propertyTwo","url":"classes/samplemockedclass.html#propertytwo","classes":"tsd-kind-property tsd-parent-kind-class","parent":"SampleMockedClass"},{"id":247,"kind":1024,"name":"propertyThree","url":"classes/samplemockedclass.html#propertythree","classes":"tsd-kind-property tsd-parent-kind-class","parent":"SampleMockedClass"},{"id":248,"kind":2048,"name":"functionWithNoParamsAndReturnType","url":"classes/samplemockedclass.html#functionwithnoparamsandreturntype","classes":"tsd-kind-method tsd-parent-kind-class","parent":"SampleMockedClass"},{"id":249,"kind":2048,"name":"functionWithParamsAndNoReturn","url":"classes/samplemockedclass.html#functionwithparamsandnoreturn","classes":"tsd-kind-method tsd-parent-kind-class","parent":"SampleMockedClass"},{"id":250,"kind":2048,"name":"functionWithParamsAndReturn","url":"classes/samplemockedclass.html#functionwithparamsandreturn","classes":"tsd-kind-method tsd-parent-kind-class","parent":"SampleMockedClass"},{"id":251,"kind":2048,"name":"functionWithComplexParam","url":"classes/samplemockedclass.html#functionwithcomplexparam","classes":"tsd-kind-method tsd-parent-kind-class","parent":"SampleMockedClass"},{"id":252,"kind":2048,"name":"functionWithCallback","url":"classes/samplemockedclass.html#functionwithcallback","classes":"tsd-kind-method tsd-parent-kind-class","parent":"SampleMockedClass"}]}; |
export * from './property-replacement-helper'; | ||
export * from './module-helper'; | ||
export * from './jest-helper'; | ||
export * from './lookup-helper'; |
@@ -8,2 +8,5 @@ export type OperatorFunction<T, C extends ConstructorFunction<T>> = (value: IMocked<T, C>) => IMocked<T, C>; | ||
// tslint:disable-next-line:ban-types | ||
export type PropertiesOnly<T> = Pick<T, { [K in keyof T]: Required<T>[K] extends Function ? never : K }[keyof T]>; | ||
/** | ||
@@ -35,4 +38,16 @@ * Allows custom logic to verify that a function parameter has the expected value. | ||
export type FunctionCallLookup = { [key: string]: any[][] }; | ||
export type FunctionCallLookup<T, C extends ConstructorFunction<T>, U extends LookupType> = { | ||
[P in FunctionName<T, C, U>]?: LookupParams<T, C, U, P>[]; | ||
}; | ||
export type LookupParams< | ||
T, | ||
C extends ConstructorFunction<T>, | ||
U extends LookupType, | ||
K extends FunctionName<T, C, U> | ||
> = U extends FunctionTypes | ||
? FunctionParams<VerifierTarget<T, C, U>[K]> | ||
: U extends SetterTypes | ||
? [VerifierTarget<T, C, U>[K]] | ||
: []; | ||
export type FunctionParams<T> = T extends (...args: infer P) => any ? P : never; | ||
@@ -42,11 +57,17 @@ | ||
export type StaticFunctionTypes = 'staticFunction' | 'staticGetter' | 'staticSetter'; | ||
export type InstanceFunctionTypes = 'function' | 'getter' | 'setter'; | ||
export type StaticLookupTypes = 'staticFunction' | 'staticGetter' | 'staticSetter'; | ||
export type InstanceLookupTypes = 'function' | 'getter' | 'setter'; | ||
export type SetterTypes = 'staticSetter' | 'setter'; | ||
export type GetterTypes = 'staticGetter' | 'getter'; | ||
export type FunctionTypes = 'staticFunction' | 'function'; | ||
export type LookupType = StaticLookupTypes | InstanceLookupTypes; | ||
export type VerifierTarget<T, C extends ConstructorFunction<T>, U extends FunctionType> = U extends StaticFunctionTypes | ||
? C | ||
export type VerifierTarget<T, C extends ConstructorFunction<T>, U extends LookupType> = U extends StaticLookupTypes | ||
? U extends FunctionTypes | ||
? FunctionsOnly<C> | ||
: C | ||
: U extends FunctionTypes | ||
? FunctionsOnly<T> | ||
: T; | ||
export type FunctionType = StaticFunctionTypes | InstanceFunctionTypes; | ||
export type FunctionName<T, C extends ConstructorFunction<T>, U extends FunctionType> = keyof VerifierTarget<T, C, U>; | ||
export type FunctionName<T, C extends ConstructorFunction<T>, U extends LookupType> = keyof VerifierTarget<T, C, U>; | ||
@@ -56,3 +77,3 @@ export interface IFunctionWithParametersVerification< | ||
T, | ||
U extends FunctionType, | ||
U extends LookupType, | ||
C extends new (...args: any[]) => T = never | ||
@@ -96,3 +117,3 @@ > extends IFunctionVerifier<T, U, C> { | ||
export interface IStrictFunctionVerification<T, U extends FunctionType, C extends new (...args: any[]) => T = never> | ||
export interface IStrictFunctionVerification<T, U extends LookupType, C extends new (...args: any[]) => T = never> | ||
extends IFunctionVerifier<T, U, C> { | ||
@@ -105,3 +126,3 @@ /** | ||
export interface IFunctionVerifier<T, U extends FunctionType, C extends new (...args: any[]) => T = never> { | ||
export interface IFunctionVerifier<T, U extends LookupType, C extends new (...args: any[]) => T = never> { | ||
type: U; | ||
@@ -125,10 +146,12 @@ functionName: FunctionName<T, C, U>; | ||
functionCallLookup: FunctionCallLookup; | ||
setterCallLookup: FunctionCallLookup; | ||
getterCallLookup: FunctionCallLookup; | ||
functionCallLookup: FunctionCallLookup<T, C, 'function'>; | ||
setterCallLookup: FunctionCallLookup<T, C, 'setter'>; | ||
getterCallLookup: FunctionCallLookup<T, C, 'getter'>; | ||
staticFunctionCallLookup: FunctionCallLookup; | ||
staticSetterCallLookup: FunctionCallLookup; | ||
staticGetterCallLookup: FunctionCallLookup; | ||
staticFunctionCallLookup: FunctionCallLookup<T, C, 'staticFunction'>; | ||
staticSetterCallLookup: FunctionCallLookup<T, C, 'staticSetter'>; | ||
staticGetterCallLookup: FunctionCallLookup<T, C, 'staticGetter'>; | ||
functionReplacementLookup: Partial<Record<LookupType, Record<string, ((...args: any[]) => any) | undefined>>>; | ||
/** | ||
@@ -135,0 +158,0 @@ * Used to setup the mock with multiple operators. |
@@ -25,2 +25,4 @@ import { FunctionsOnly, IMocked, OperatorFunction } from './contracts'; | ||
functionReplacementLookup: {}, | ||
mock: {} as T, | ||
@@ -70,3 +72,3 @@ // tslint:disable-next-line:no-empty | ||
withFunction: <U extends keyof T>(functionName: U) => | ||
withFunction: <U extends keyof FunctionsOnly<T>>(functionName: U) => | ||
createFunctionParameterVerifier(mocked, 'function', functionName), | ||
@@ -77,3 +79,3 @@ withSetter: <U extends keyof T>(functionName: U) => | ||
withStaticFunction: <U extends keyof C>(functionName: U) => | ||
withStaticFunction: <U extends keyof FunctionsOnly<C>>(functionName: U) => | ||
createFunctionParameterVerifier(mocked, 'staticFunction', functionName), | ||
@@ -80,0 +82,0 @@ withStaticSetter: <U extends keyof C>(functionName: U) => |
@@ -0,1 +1,2 @@ | ||
import { getLookup } from '../helper'; | ||
import { | ||
@@ -5,6 +6,9 @@ ConstructorFunction, | ||
FunctionName, | ||
FunctionsOnly, | ||
FunctionType, | ||
FunctionTypes, | ||
GetterTypes, | ||
IMocked, | ||
LookupParams, | ||
LookupType, | ||
OperatorFunction, | ||
SetterTypes, | ||
} from './contracts'; | ||
@@ -20,3 +24,3 @@ | ||
*/ | ||
export function setupFunction<T, C extends ConstructorFunction<T>, U extends keyof FunctionsOnly<T>>( | ||
export function setupFunction<T, C extends ConstructorFunction<T>, U extends FunctionName<T, C, 'function'>>( | ||
functionName: U, | ||
@@ -26,9 +30,11 @@ mockFunction?: T[U], | ||
return (mocked: IMocked<T, C>) => { | ||
const functionReplacement = (...args: any[]) => { | ||
const functionReplacement = (...args: LookupParams<T, C, 'function', U>) => { | ||
let returnValue: any; | ||
if (mockFunction instanceof Function) { | ||
returnValue = mockFunction.apply(mocked.mock, args); | ||
const mockedFunction = mocked.functionReplacementLookup['function']?.[functionName as string]; | ||
if (mockedFunction instanceof Function) { | ||
returnValue = mockedFunction.apply(mocked.mock, args); | ||
} | ||
trackFunctionCall(mocked, functionName as string, args, false); | ||
trackFunctionCall(mocked, 'function', functionName, args); | ||
@@ -38,5 +44,11 @@ return returnValue; | ||
mocked.mock[functionName] = functionReplacement as any; | ||
mocked.functionCallLookup[functionName as any] = []; | ||
const functionLookup = (mocked.functionReplacementLookup['function'] = | ||
mocked.functionReplacementLookup['function'] || {}); | ||
functionLookup[functionName as string] = mockFunction; | ||
if (mocked.mock[functionName] == null) { | ||
mocked.mock[functionName] = functionReplacement as any; | ||
} | ||
mocked.functionCallLookup[functionName] = []; | ||
return mocked; | ||
@@ -54,14 +66,17 @@ }; | ||
*/ | ||
export function setupStaticFunction<T, C extends ConstructorFunction<T>, U extends keyof FunctionsOnly<C>>( | ||
functionName: U, | ||
mockFunction?: C[U], | ||
): OperatorFunction<T, C> { | ||
export function setupStaticFunction< | ||
T, | ||
C extends ConstructorFunction<T>, | ||
U extends FunctionName<T, C, 'staticFunction'> | ||
>(functionName: U, mockFunction?: C[U]): OperatorFunction<T, C> { | ||
return (mocked: IMocked<T, C>) => { | ||
const functionReplacement = (...args: any[]) => { | ||
const functionReplacement = (...args: LookupParams<T, C, 'staticFunction', U>) => { | ||
let returnValue: any; | ||
if (mockFunction instanceof Function) { | ||
returnValue = mockFunction.apply(mocked.mock, args); | ||
const mockedFunction = mocked.functionReplacementLookup['staticFunction']?.[functionName as string]; | ||
if (mockedFunction instanceof Function) { | ||
returnValue = mockedFunction.apply(mocked.mock, args); | ||
} | ||
trackFunctionCall(mocked, functionName as string, args, true); | ||
trackFunctionCall(mocked, 'staticFunction', functionName, args); | ||
@@ -71,5 +86,11 @@ return returnValue; | ||
mocked.mockConstructor[functionName] = functionReplacement as any; | ||
mocked.staticFunctionCallLookup[functionName as any] = []; | ||
const staticFunctionLookup = (mocked.functionReplacementLookup['staticFunction'] = | ||
mocked.functionReplacementLookup['staticFunction'] || {}); | ||
staticFunctionLookup[functionName as string] = mockFunction; | ||
if (mocked.mockConstructor[functionName] == null) { | ||
mocked.mockConstructor[functionName] = functionReplacement as any; | ||
} | ||
mocked.staticFunctionCallLookup[functionName] = []; | ||
return mocked; | ||
@@ -87,3 +108,3 @@ }; | ||
*/ | ||
export function setupProperty<T, C extends ConstructorFunction<T>, U extends keyof T>( | ||
export function setupProperty<T, C extends ConstructorFunction<T>, U extends FunctionName<T, C, 'getter'>>( | ||
propertyName: U, | ||
@@ -103,3 +124,3 @@ value?: T[U], | ||
*/ | ||
export function setupStaticProperty<T, C extends ConstructorFunction<T>, U extends keyof C>( | ||
export function setupStaticProperty<T, C extends ConstructorFunction<T>, U extends FunctionName<T, C, 'staticGetter'>>( | ||
propertyName: U, | ||
@@ -119,3 +140,3 @@ value?: C[U], | ||
*/ | ||
export function defineProperty<T, C extends ConstructorFunction<T>, U extends keyof T>( | ||
export function defineProperty<T, C extends ConstructorFunction<T>, U extends FunctionName<T, C, 'getter'>>( | ||
propertyName: U, | ||
@@ -126,3 +147,3 @@ getter?: () => T[U], | ||
return (mocked: IMocked<T, C>) => { | ||
return definePropertyImpl(mocked, 'getter', propertyName, false, getter, setter); | ||
return definePropertyImpl(mocked, 'getter', propertyName, getter, setter); | ||
}; | ||
@@ -139,3 +160,3 @@ } | ||
*/ | ||
export function defineStaticProperty<T, C extends ConstructorFunction<T>, U extends keyof C>( | ||
export function defineStaticProperty<T, C extends ConstructorFunction<T>, U extends FunctionName<T, C, 'staticGetter'>>( | ||
propertyName: U, | ||
@@ -146,3 +167,3 @@ getter?: () => C[U], | ||
return (mocked: IMocked<T, C>) => { | ||
return definePropertyImpl(mocked, 'staticGetter', propertyName, true, getter, setter); | ||
return definePropertyImpl(mocked, 'staticGetter', propertyName, getter, setter); | ||
}; | ||
@@ -154,9 +175,8 @@ } | ||
C extends ConstructorFunction<T>, | ||
U extends FunctionType, | ||
U extends GetterTypes, | ||
K extends FunctionName<T, C, U> | ||
>( | ||
mocked: IMocked<T, C>, | ||
_type: U, | ||
lookupType: U, | ||
propertyName: K, | ||
isStatic: boolean, | ||
getter?: () => any, | ||
@@ -166,42 +186,76 @@ setter?: (value: any) => void, | ||
const propertyGetter = () => { | ||
trackGetterCall(mocked, propertyName as string, isStatic); | ||
trackGetterCall(mocked, lookupType, propertyName); | ||
return getter ? getter() : undefined; | ||
const mockedFunction = mocked.functionReplacementLookup[lookupType]?.[propertyName as string]; | ||
return mockedFunction ? mockedFunction() : undefined; | ||
}; | ||
let setterLookupType: SetterTypes; | ||
switch (lookupType) { | ||
case 'getter': | ||
setterLookupType = 'setter'; | ||
const getterLookup = (mocked.functionReplacementLookup['getter'] = | ||
mocked.functionReplacementLookup['getter'] || {}); | ||
getterLookup[propertyName as string] = getter; | ||
const setterLookup = (mocked.functionReplacementLookup['setter'] = | ||
mocked.functionReplacementLookup['setter'] || {}); | ||
setterLookup[propertyName as string] = setter; | ||
break; | ||
case 'staticGetter': | ||
const staticGetterLookup = (mocked.functionReplacementLookup['staticGetter'] = | ||
mocked.functionReplacementLookup['staticGetter'] || {}); | ||
staticGetterLookup[propertyName as string] = getter; | ||
const staticSetterLookup = (mocked.functionReplacementLookup['staticSetter'] = | ||
mocked.functionReplacementLookup['staticSetter'] || {}); | ||
staticSetterLookup[propertyName as string] = setter; | ||
setterLookupType = 'staticSetter'; | ||
break; | ||
} | ||
const setterProperty: FunctionName<T, C, SetterTypes> = propertyName as any; | ||
const propertySetter = (value: any) => { | ||
trackSetterCall(mocked, propertyName as string, value, isStatic); | ||
trackSetterCall(mocked, setterLookupType, setterProperty, [value]); | ||
if (setter != null) { | ||
setter.apply(mocked.mock, [value]); | ||
const mockedFunction = mocked.functionReplacementLookup[setterLookupType]?.[propertyName as string]; | ||
if (mockedFunction != null) { | ||
mockedFunction.apply(mocked.mock, [value]); | ||
} | ||
}; | ||
const object = isStatic ? mocked.mockConstructor : mocked.mock; | ||
let target: T | C; | ||
Object.defineProperty(object, propertyName, { | ||
enumerable: true, | ||
get: propertyGetter, | ||
set: propertySetter, | ||
configurable: true, | ||
}); | ||
getLookup(mocked, lookupType)[propertyName] = []; | ||
if (isStatic) { | ||
mocked.staticGetterCallLookup[propertyName as any] = []; | ||
mocked.staticSetterCallLookup[propertyName as any] = []; | ||
} else { | ||
mocked.getterCallLookup[propertyName as any] = []; | ||
mocked.setterCallLookup[propertyName as any] = []; | ||
switch (lookupType) { | ||
case 'staticGetter': | ||
target = mocked.mockConstructor; | ||
getLookup(mocked, 'staticSetter')[setterProperty] = []; | ||
break; | ||
default: | ||
target = mocked.mock; | ||
getLookup(mocked, 'setter')[setterProperty] = []; | ||
break; | ||
} | ||
if (Object.getOwnPropertyDescriptor(target, propertyName) == null) { | ||
Object.defineProperty(target, propertyName, { | ||
enumerable: true, | ||
get: propertyGetter, | ||
set: propertySetter, | ||
configurable: true, | ||
}); | ||
} | ||
return mocked; | ||
} | ||
function trackFunctionCall<T, C extends ConstructorFunction<T>>( | ||
mock: IMocked<T, C>, | ||
functionName: string, | ||
params: any[], | ||
isStatic: boolean, | ||
) { | ||
const lookup = isStatic ? mock.staticFunctionCallLookup : mock.functionCallLookup; | ||
function trackFunctionCall< | ||
T, | ||
C extends ConstructorFunction<T>, | ||
U extends FunctionTypes, | ||
K extends FunctionName<T, C, U> | ||
>(mock: IMocked<T, C>, lookupType: U, functionName: K, params: LookupParams<T, C, U, K>) { | ||
const lookup = getLookup(mock, lookupType); | ||
@@ -211,31 +265,38 @@ trackCall(lookup, functionName, params); | ||
function trackGetterCall<T, C extends ConstructorFunction<T>>( | ||
function trackGetterCall<T, C extends ConstructorFunction<T>, U extends GetterTypes, K extends FunctionName<T, C, U>>( | ||
mock: IMocked<T, C>, | ||
propertyName: string, | ||
isStatic: boolean, | ||
lookupType: U, | ||
propertyName: K, | ||
) { | ||
const lookup = isStatic ? mock.staticGetterCallLookup : mock.getterCallLookup; | ||
const lookup = getLookup(mock, lookupType); | ||
// it's easier to have an array of empty arrays than just keep track of a count | ||
// This allows us to use the same verification code as the setter and functions | ||
trackCall(lookup, propertyName, []); | ||
trackCall(lookup, propertyName, [] as LookupParams<T, C, U, K>); | ||
} | ||
function trackSetterCall<T, C extends ConstructorFunction<T>>( | ||
function trackSetterCall<T, C extends ConstructorFunction<T>, U extends SetterTypes, K extends FunctionName<T, C, U>>( | ||
mock: IMocked<T, C>, | ||
propertyName: string, | ||
param: any, | ||
isStatic: boolean, | ||
lookupType: U, | ||
propertyName: K, | ||
param: LookupParams<T, C, U, K>, | ||
) { | ||
const lookup = isStatic ? mock.staticSetterCallLookup : mock.setterCallLookup; | ||
const lookup = getLookup(mock, lookupType); | ||
trackCall(lookup, propertyName, [param]); | ||
trackCall(lookup, propertyName, param); | ||
} | ||
function trackCall(lookup: FunctionCallLookup, name: string, params: any[]) { | ||
if (lookup[name as any] === undefined) { | ||
lookup[name as any] = []; | ||
function trackCall<T, C extends ConstructorFunction<T>, U extends LookupType, K extends FunctionName<T, C, U>>( | ||
lookup: FunctionCallLookup<T, C, U>, | ||
name: K, | ||
params: LookupParams<T, C, U, K>, | ||
) { | ||
let functionCalls: LookupParams<T, C, U, K>[] | undefined = lookup[name]; | ||
if (functionCalls === undefined) { | ||
functionCalls = [] as LookupParams<T, C, U, K>[]; | ||
lookup[name] = functionCalls; | ||
} | ||
lookup[name as any].push(params); | ||
functionCalls.push(params); | ||
} |
@@ -1,2 +0,2 @@ | ||
import { runningInJest } from '../helper'; | ||
import { getLookup, runningInJest } from '../helper'; | ||
import { | ||
@@ -6,3 +6,2 @@ ConstructorFunction, | ||
FunctionParams, | ||
FunctionType, | ||
IFunctionVerifier, | ||
@@ -15,2 +14,4 @@ IFunctionWithParametersVerification, | ||
IStrictFunctionVerification, | ||
LookupParams, | ||
LookupType, | ||
MatchFunction, | ||
@@ -26,3 +27,3 @@ ParameterMatcher, | ||
C extends ConstructorFunction<T>, | ||
U extends FunctionType, | ||
U extends LookupType, | ||
K extends FunctionName<T, C, U> | ||
@@ -34,3 +35,3 @@ > = U extends SetterTypes ? [VerifierTarget<T, C, U>[K]] : FunctionParams<VerifierTarget<T, C, U>[K]>; | ||
C extends ConstructorFunction<T>, | ||
U extends FunctionType, | ||
U extends LookupType, | ||
K extends FunctionName<T, C, U> | ||
@@ -65,3 +66,3 @@ >( | ||
C extends ConstructorFunction<T>, | ||
U extends FunctionType, | ||
U extends LookupType, | ||
K extends FunctionName<T, C, U> | ||
@@ -87,3 +88,3 @@ >( | ||
C extends ConstructorFunction<T>, | ||
U extends FunctionType, | ||
U extends LookupType, | ||
K extends FunctionName<T, C, U> | ||
@@ -105,3 +106,3 @@ >( | ||
C extends ConstructorFunction<T>, | ||
U extends FunctionType, | ||
U extends LookupType, | ||
K extends FunctionName<T, C, U> | ||
@@ -138,3 +139,3 @@ >( | ||
export function verifyFunctionCalled<T, C extends ConstructorFunction<T>, U extends FunctionType>( | ||
export function verifyFunctionCalled<T, C extends ConstructorFunction<T>, U extends LookupType>( | ||
times: number | undefined, | ||
@@ -149,3 +150,2 @@ verifier: IFunctionVerifier<T, U, C>, | ||
let functionCalls: any[][]; | ||
let expectationMessage: string; | ||
@@ -155,5 +155,6 @@ let errorMessageSetupFunction: string; | ||
const functionCalls: LookupParams<T, C, U, any>[] | undefined = getLookup(mock, type)[functionName]; | ||
switch (type) { | ||
case 'staticGetter': | ||
functionCalls = mock.staticGetterCallLookup[functionName as any]; | ||
expectationMessage = `Expected static property "${functionName}" getter to be called`; | ||
@@ -165,3 +166,2 @@ errorMessageSetupFunction = `Mock.setupStaticProperty()`; | ||
case 'staticSetter': | ||
functionCalls = mock.staticSetterCallLookup[functionName as any]; | ||
expectationMessage = `Expected static property "${functionName}" to be set`; | ||
@@ -173,3 +173,2 @@ errorMessageSetupFunction = `Mock.setupStaticProperty()`; | ||
case 'staticFunction': | ||
functionCalls = mock.staticFunctionCallLookup[functionName as any]; | ||
expectationMessage = `Expected static function "${functionName}" to be called`; | ||
@@ -181,3 +180,2 @@ errorMessageSetupFunction = `Mock.setupStaticFunction()`; | ||
case 'getter': | ||
functionCalls = mock.getterCallLookup[functionName as any]; | ||
expectationMessage = `Expected property "${functionName}" getter to be called`; | ||
@@ -189,3 +187,2 @@ errorMessageSetupFunction = `Mock.setupProperty()`; | ||
case 'setter': | ||
functionCalls = mock.setterCallLookup[functionName as any]; | ||
expectationMessage = `Expected property "${functionName}" to be set`; | ||
@@ -197,3 +194,2 @@ errorMessageSetupFunction = `Mock.setupProperty()`; | ||
default: | ||
functionCalls = mock.functionCallLookup[functionName as any]; | ||
expectationMessage = `Expected "${functionName}" to be called`; | ||
@@ -200,0 +196,0 @@ errorMessageSetupFunction = `Mock.setupFunction()`; |
{ | ||
"name": "@morgan-stanley/ts-mocking-bird", | ||
"version": "0.2.3", | ||
"version": "0.3.0", | ||
"description": "A fully type safe mocking, call verification and import replacement library for jasmine and jest", | ||
@@ -31,3 +31,3 @@ "license": "Apache-2.0", | ||
"@types/jasmine": "^3.5.10", | ||
"@types/jest": "^24.9.1", | ||
"@types/jest": "^25.2.3", | ||
"@types/lodash": "^4.14.149", | ||
@@ -42,2 +42,3 @@ "@types/node": "^10.17.18", | ||
"copyfiles": "^1.2.0", | ||
"handlebars": "^4.1.2", | ||
"istanbul-instrumenter-loader": "^3.0.1", | ||
@@ -59,3 +60,2 @@ "jasmine": "^3.5.0", | ||
"source-map": "0.5.7", | ||
"ts-jest": "^25.4.0", | ||
"ts-loader": "^5.4.5", | ||
@@ -66,4 +66,4 @@ "tsconfig-paths-webpack-plugin": "^3.2.0", | ||
"tslint-plugin-prettier": "^2.3.0", | ||
"typedoc": "~0.14.2", | ||
"typescript": "~3.1.6", | ||
"typedoc": "^0.16.11", | ||
"typescript": "^3.8.3", | ||
"webpack": "^4.42.1" | ||
@@ -70,0 +70,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
8159323
96
4887
1
2