MCPcopy Create free account

hub / github.com/charleshansen/mock-promises / functions

Functions212 in github.com/charleshansen/mock-promises

↓ 86 callersFunctionexpect
(obj)
spec/support/expect.js:30
↓ 55 callersFunctioni
* Inspects an object. * * @see taken from node.js `util` module (copyright Joyent, MIT license) * @api private
spec/support/expect.js:578
↓ 26 callersMethodtoEqual
(expected: any)
typings/jasmine/jasmine.d.ts:283
↓ 20 callersMethodtoHaveBeenCalled
()
typings/jasmine/jasmine.d.ts:291
↓ 17 callersFunctionstylize
(str)
spec/support/expect.js:581
↓ 14 callersMethodtoBe
(expected: any)
typings/jasmine/jasmine.d.ts:282
↓ 12 callersMethodtoHaveBeenCalledWith
(...params: any[])
typings/jasmine/jasmine.d.ts:292
↓ 10 callersFunctioneach
(array, handler)
lib/mock-promises.js:17
↓ 9 callersMethodall
By chaining the spy with calls.all(), will return the context (the this) and arguments passed all calls
typings/jasmine/jasmine.d.ts:445
↓ 9 callersFunctionisFunction
(obj)
lib/mock-promises.js:23
↓ 8 callersFunctionisRegExp
(re)
spec/support/expect.js:774
↓ 8 callersMethodtick
Calls to any registered callback are triggered when the clock is ticked forward via the jasmine.clock().tick function, which takes a number of millise
typings/jasmine/jasmine.d.ts:109
↓ 6 callersFunctionkeys
(obj)
spec/support/expect.js:796
↓ 6 callersMethodreset
By chaining the spy with calls.reset(), will clears all tracking for a spy
typings/jasmine/jasmine.d.ts:451
↓ 6 callersMethoduninstall
()
typings/jasmine/jasmine.d.ts:107
↓ 5 callersFunctionf
(n)
spec/support/expect.js:980
↓ 5 callersFunctionindexOf
* Array indexOf compatibility. * * @see bit.ly/a5Dxa2 * @api public
spec/support/expect.js:527
↓ 5 callersFunctionisArray
(ar)
spec/support/expect.js:770
↓ 4 callersMethodexecute
()
typings/jasmine/jasmine.d.ts:156
↓ 4 callersFunctiongetCollection
()
spec/javascripts/mocha_examples_test.js:12
↓ 4 callersFunctiongetModel
()
spec/javascripts/mocha_examples_test.js:4
↓ 4 callersFunctionisFulfilled
(promise)
lib/mock-promises.js:65
↓ 4 callersFunctionisRejected
(promise)
lib/mock-promises.js:80
↓ 4 callersFunctionitImplementsContracts
(PromiseLibrary, options)
spec/javascripts/shared_behaviors.js:3
↓ 4 callersFunctionmap
(arr, mapper, that)
spec/support/expect.js:812
↓ 3 callersFunctionextend
(destination, source)
lib/mock-promises.js:10
↓ 3 callersMethodinstall
()
typings/jasmine/jasmine.d.ts:106
↓ 3 callersFunctionitImplementsHelpers
(PromiseLibrary)
spec/javascripts/shared_behaviors.js:483
↓ 3 callersFunctionquote
(string)
spec/support/expect.js:1011
↓ 3 callersFunctionrejectPromise
(promise, reason)
lib/mock-promises.js:342
↓ 3 callersFunctionresolvePromise
(promise, value, fulfilledHandler, errorHandler, progressHandler)
lib/mock-promises.js:324
↓ 2 callersMethodadd
(block: any, ensure?: boolean)
typings/jasmine/jasmine.d.ts:264
↓ 2 callersFunctionaddModelFromPromise
(modelPromise, collection)
spec/javascripts/mocha_examples_test.js:21
↓ 2 callersFunctionaddModelIfSafe
(modelPromise, collection)
spec/javascripts/mocha_examples_test.js:27
↓ 2 callersFunctiongetValue
(promise)
lib/mock-promises.js:29
↓ 2 callersFunctionisArguments
(object)
spec/support/expect.js:916
↓ 2 callersFunctionisDate
(d)
spec/support/expect.js:792
↓ 2 callersFunctionisUndefinedOrNull
(value)
spec/support/expect.js:912
↓ 2 callersFunctionitInstalls
(PromiseLibrary)
spec/javascripts/shared_behaviors.js:627
↓ 2 callersMethodlog
(arguments: any)
typings/jasmine/jasmine.d.ts:362
↓ 2 callersFunctionreset
()
spec/javascripts/mocha_examples_test.js:42
↓ 1 callersFunctionbind
* Function bind implementation.
spec/support/expect.js:497
↓ 1 callersFunctiondate
(d, key)
spec/support/expect.js:985
↓ 1 callersFunctionevery
* Array every compatibility * * @see bit.ly/5Fq1N2 * @api public
spec/support/expect.js:510
↓ 1 callersFunctionformat
(value, recurseTimes)
spec/support/expect.js:585
↓ 1 callersFunctiongetOuterHTML
(element)
spec/support/expect.js:543
↓ 1 callersFunctiongetReason
(promise)
lib/mock-promises.js:47
↓ 1 callersFunctionisActive
(contracts)
lib/mock-promises.js:439
↓ 1 callersFunctionisDOMElement
(object)
spec/support/expect.js:560
↓ 1 callersFunctionobjEquiv
(a, b)
spec/support/expect.js:925
↓ 1 callersFunctionreduce
(arr, fun)
spec/support/expect.js:826
↓ 1 callersFunctionregExpEquiv
(a, b)
spec/support/expect.js:920
↓ 1 callersFunctionresolvedPendingContracts
()
lib/mock-promises.js:295
↓ 1 callersFunctionstr
(key, holder)
spec/support/expect.js:1027
↓ 1 callersMethodtoBeGreaterThan
(expected: any)
typings/jasmine/jasmine.d.ts:295
↓ 1 callersMethodtoThrow
(expected?: any)
typings/jasmine/jasmine.d.ts:299
↓ 1 callersFunctionwalk
(holder, key)
spec/support/expect.js:1202
FunctionAssertion
* Constructor * * @api private
spec/support/expect.js:40
FunctionContract
(options)
lib/mock-promises.js:315
FunctionContractsTracker
()
lib/mock-promises.js:386
FunctionMockPromises
()
lib/mock-promises.js:97
Methodadd
(block: Block)
typings/jasmine/jasmine.d.ts:330
Methodadd
(suiteOrSpec: SuiteOrSpec)
typings/jasmine/jasmine.d.ts:400
MethodaddBefore
(block: Block, ensure?: boolean)
typings/jasmine/jasmine.d.ts:263
MethodaddBeforesAndAftersToQueue
()
typings/jasmine/jasmine.d.ts:376
MethodaddCustomEqualityTester
(equalityTester: CustomEqualityTester)
typings/jasmine/jasmine.d.ts:172
MethodaddMatcherResult
(result: Result)
typings/jasmine/jasmine.d.ts:365
MethodaddMatchers
(matchers: CustomMatcherFactories)
typings/jasmine/jasmine.d.ts:173
MethodaddMatchers
(matchersPrototype: CustomMatcherFactories)
typings/jasmine/jasmine.d.ts:371
MethodaddReporter
(reporter: Reporter)
typings/jasmine/jasmine.d.ts:155
MethodaddReporter
(reporter: Reporter)
typings/jasmine/jasmine.d.ts:316
MethodaddResult
(result: Result)
typings/jasmine/jasmine.d.ts:211
MethodaddSuite
(suite: Suite)
typings/jasmine/jasmine.d.ts:329
MethodaddToQueue
(block: Block)
typings/jasmine/jasmine.d.ts:364
Methodafter
(doAfter: SpecFunction)
typings/jasmine/jasmine.d.ts:374
MethodafterAll
(afterAllFunction: () => void)
typings/jasmine/jasmine.d.ts:163
MethodafterAll
(afterAllFunction: SpecFunction)
typings/jasmine/jasmine.d.ts:327
MethodafterAll
(afterAllFunction: SpecFunction)
typings/jasmine/jasmine.d.ts:398
MethodafterEach
(afterEachFunction: () => void)
typings/jasmine/jasmine.d.ts:162
MethodafterEach
(afterEachFunction: SpecFunction)
typings/jasmine/jasmine.d.ts:325
MethodafterEach
(afterEachFunction: SpecFunction)
typings/jasmine/jasmine.d.ts:396
MethodallArgs
By chaining the spy with calls.allArgs(), will return the arguments to all calls
typings/jasmine/jasmine.d.ts:443
Methodany
By chaining the spy with calls.any(), will return false if the spy has not been called at all, and then true once at least one call happens.
typings/jasmine/jasmine.d.ts:437
Methodappend
(value: any)
typings/jasmine/jasmine.d.ts:245
MethodargsFor
By chaining the spy with calls.argsFor(), will return the arguments passed to call number index
typings/jasmine/jasmine.d.ts:441
MethodargsToArray
(args: any)
typings/jasmine/jasmine.d.ts:465
MethodasymmetricMatch
(other: any)
typings/jasmine/jasmine.d.ts:79
MethodbeforeAll
(beforeAllFunction: () => void)
typings/jasmine/jasmine.d.ts:160
MethodbeforeAll
(beforeAllFunction: SpecFunction)
typings/jasmine/jasmine.d.ts:326
MethodbeforeAll
(beforeAllFunction: SpecFunction)
typings/jasmine/jasmine.d.ts:397
MethodbeforeEach
(beforeEachFunction: () => void)
typings/jasmine/jasmine.d.ts:159
MethodbeforeEach
(beforeEachFunction: SpecFunction)
typings/jasmine/jasmine.d.ts:324
MethodbeforeEach
(beforeEachFunction: SpecFunction)
typings/jasmine/jasmine.d.ts:395
MethodbuildFailureMessage
(matcherName: string, isNot: boolean, actual: any, ...expected: Array<any>)
typings/jasmine/jasmine.d.ts:138
MethodcallFake
By chaining the spy with and.callFake, all calls to the spy will delegate to the supplied function.
typings/jasmine/jasmine.d.ts:428
MethodcallThrough
By chaining the spy with and.callThrough, the spy will still track all calls to it but in addition it will delegate to the actual implementation.
typings/jasmine/jasmine.d.ts:424
Methodchildren
()
typings/jasmine/jasmine.d.ts:403
Methodcompare
(actual: T, expected: T)
typings/jasmine/jasmine.d.ts:118
MethodcompareObjects_
(a: any, b: any, mismatchKeys: string[], mismatchValues: string[])
typings/jasmine/jasmine.d.ts:169
MethodcompareRegExps_
(a: RegExp, b: RegExp, mismatchKeys: string[], mismatchValues: string[])
typings/jasmine/jasmine.d.ts:168
next →1–100 of 212, ranked by callers