Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/charleshansen/mock-promises
/ functions
Functions
212 in github.com/charleshansen/mock-promises
⨍
Functions
212
◇
Types & classes
43
↓ 86 callers
Function
expect
(obj)
spec/support/expect.js:30
↓ 55 callers
Function
i
* Inspects an object. * * @see taken from node.js `util` module (copyright Joyent, MIT license) * @api private
spec/support/expect.js:578
↓ 26 callers
Method
toEqual
(expected: any)
typings/jasmine/jasmine.d.ts:283
↓ 20 callers
Method
toHaveBeenCalled
()
typings/jasmine/jasmine.d.ts:291
↓ 17 callers
Function
stylize
(str)
spec/support/expect.js:581
↓ 14 callers
Method
toBe
(expected: any)
typings/jasmine/jasmine.d.ts:282
↓ 12 callers
Method
toHaveBeenCalledWith
(...params: any[])
typings/jasmine/jasmine.d.ts:292
↓ 10 callers
Function
each
(array, handler)
lib/mock-promises.js:17
↓ 9 callers
Method
all
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 callers
Function
isFunction
(obj)
lib/mock-promises.js:23
↓ 8 callers
Function
isRegExp
(re)
spec/support/expect.js:774
↓ 8 callers
Method
tick
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 callers
Function
keys
(obj)
spec/support/expect.js:796
↓ 6 callers
Method
reset
By chaining the spy with calls.reset(), will clears all tracking for a spy
typings/jasmine/jasmine.d.ts:451
↓ 6 callers
Method
uninstall
()
typings/jasmine/jasmine.d.ts:107
↓ 5 callers
Function
f
(n)
spec/support/expect.js:980
↓ 5 callers
Function
indexOf
* Array indexOf compatibility. * * @see bit.ly/a5Dxa2 * @api public
spec/support/expect.js:527
↓ 5 callers
Function
isArray
(ar)
spec/support/expect.js:770
↓ 4 callers
Method
execute
()
typings/jasmine/jasmine.d.ts:156
↓ 4 callers
Function
getCollection
()
spec/javascripts/mocha_examples_test.js:12
↓ 4 callers
Function
getModel
()
spec/javascripts/mocha_examples_test.js:4
↓ 4 callers
Function
isFulfilled
(promise)
lib/mock-promises.js:65
↓ 4 callers
Function
isRejected
(promise)
lib/mock-promises.js:80
↓ 4 callers
Function
itImplementsContracts
(PromiseLibrary, options)
spec/javascripts/shared_behaviors.js:3
↓ 4 callers
Function
map
(arr, mapper, that)
spec/support/expect.js:812
↓ 3 callers
Function
extend
(destination, source)
lib/mock-promises.js:10
↓ 3 callers
Method
install
()
typings/jasmine/jasmine.d.ts:106
↓ 3 callers
Function
itImplementsHelpers
(PromiseLibrary)
spec/javascripts/shared_behaviors.js:483
↓ 3 callers
Function
quote
(string)
spec/support/expect.js:1011
↓ 3 callers
Function
rejectPromise
(promise, reason)
lib/mock-promises.js:342
↓ 3 callers
Function
resolvePromise
(promise, value, fulfilledHandler, errorHandler, progressHandler)
lib/mock-promises.js:324
↓ 2 callers
Method
add
(block: any, ensure?: boolean)
typings/jasmine/jasmine.d.ts:264
↓ 2 callers
Function
addModelFromPromise
(modelPromise, collection)
spec/javascripts/mocha_examples_test.js:21
↓ 2 callers
Function
addModelIfSafe
(modelPromise, collection)
spec/javascripts/mocha_examples_test.js:27
↓ 2 callers
Function
getValue
(promise)
lib/mock-promises.js:29
↓ 2 callers
Function
isArguments
(object)
spec/support/expect.js:916
↓ 2 callers
Function
isDate
(d)
spec/support/expect.js:792
↓ 2 callers
Function
isUndefinedOrNull
(value)
spec/support/expect.js:912
↓ 2 callers
Function
itInstalls
(PromiseLibrary)
spec/javascripts/shared_behaviors.js:627
↓ 2 callers
Method
log
(arguments: any)
typings/jasmine/jasmine.d.ts:362
↓ 2 callers
Function
reset
()
spec/javascripts/mocha_examples_test.js:42
↓ 1 callers
Function
bind
* Function bind implementation.
spec/support/expect.js:497
↓ 1 callers
Function
date
(d, key)
spec/support/expect.js:985
↓ 1 callers
Function
every
* Array every compatibility * * @see bit.ly/5Fq1N2 * @api public
spec/support/expect.js:510
↓ 1 callers
Function
format
(value, recurseTimes)
spec/support/expect.js:585
↓ 1 callers
Function
getOuterHTML
(element)
spec/support/expect.js:543
↓ 1 callers
Function
getReason
(promise)
lib/mock-promises.js:47
↓ 1 callers
Function
isActive
(contracts)
lib/mock-promises.js:439
↓ 1 callers
Function
isDOMElement
(object)
spec/support/expect.js:560
↓ 1 callers
Function
objEquiv
(a, b)
spec/support/expect.js:925
↓ 1 callers
Function
reduce
(arr, fun)
spec/support/expect.js:826
↓ 1 callers
Function
regExpEquiv
(a, b)
spec/support/expect.js:920
↓ 1 callers
Function
resolvedPendingContracts
()
lib/mock-promises.js:295
↓ 1 callers
Function
str
(key, holder)
spec/support/expect.js:1027
↓ 1 callers
Method
toBeGreaterThan
(expected: any)
typings/jasmine/jasmine.d.ts:295
↓ 1 callers
Method
toThrow
(expected?: any)
typings/jasmine/jasmine.d.ts:299
↓ 1 callers
Function
walk
(holder, key)
spec/support/expect.js:1202
Function
Assertion
* Constructor * * @api private
spec/support/expect.js:40
Function
Contract
(options)
lib/mock-promises.js:315
Function
ContractsTracker
()
lib/mock-promises.js:386
Function
MockPromises
()
lib/mock-promises.js:97
Method
add
(block: Block)
typings/jasmine/jasmine.d.ts:330
Method
add
(suiteOrSpec: SuiteOrSpec)
typings/jasmine/jasmine.d.ts:400
Method
addBefore
(block: Block, ensure?: boolean)
typings/jasmine/jasmine.d.ts:263
Method
addBeforesAndAftersToQueue
()
typings/jasmine/jasmine.d.ts:376
Method
addCustomEqualityTester
(equalityTester: CustomEqualityTester)
typings/jasmine/jasmine.d.ts:172
Method
addMatcherResult
(result: Result)
typings/jasmine/jasmine.d.ts:365
Method
addMatchers
(matchers: CustomMatcherFactories)
typings/jasmine/jasmine.d.ts:173
Method
addMatchers
(matchersPrototype: CustomMatcherFactories)
typings/jasmine/jasmine.d.ts:371
Method
addReporter
(reporter: Reporter)
typings/jasmine/jasmine.d.ts:155
Method
addReporter
(reporter: Reporter)
typings/jasmine/jasmine.d.ts:316
Method
addResult
(result: Result)
typings/jasmine/jasmine.d.ts:211
Method
addSuite
(suite: Suite)
typings/jasmine/jasmine.d.ts:329
Method
addToQueue
(block: Block)
typings/jasmine/jasmine.d.ts:364
Method
after
(doAfter: SpecFunction)
typings/jasmine/jasmine.d.ts:374
Method
afterAll
(afterAllFunction: () => void)
typings/jasmine/jasmine.d.ts:163
Method
afterAll
(afterAllFunction: SpecFunction)
typings/jasmine/jasmine.d.ts:327
Method
afterAll
(afterAllFunction: SpecFunction)
typings/jasmine/jasmine.d.ts:398
Method
afterEach
(afterEachFunction: () => void)
typings/jasmine/jasmine.d.ts:162
Method
afterEach
(afterEachFunction: SpecFunction)
typings/jasmine/jasmine.d.ts:325
Method
afterEach
(afterEachFunction: SpecFunction)
typings/jasmine/jasmine.d.ts:396
Method
allArgs
By chaining the spy with calls.allArgs(), will return the arguments to all calls
typings/jasmine/jasmine.d.ts:443
Method
any
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
Method
append
(value: any)
typings/jasmine/jasmine.d.ts:245
Method
argsFor
By chaining the spy with calls.argsFor(), will return the arguments passed to call number index
typings/jasmine/jasmine.d.ts:441
Method
argsToArray
(args: any)
typings/jasmine/jasmine.d.ts:465
Method
asymmetricMatch
(other: any)
typings/jasmine/jasmine.d.ts:79
Method
beforeAll
(beforeAllFunction: () => void)
typings/jasmine/jasmine.d.ts:160
Method
beforeAll
(beforeAllFunction: SpecFunction)
typings/jasmine/jasmine.d.ts:326
Method
beforeAll
(beforeAllFunction: SpecFunction)
typings/jasmine/jasmine.d.ts:397
Method
beforeEach
(beforeEachFunction: () => void)
typings/jasmine/jasmine.d.ts:159
Method
beforeEach
(beforeEachFunction: SpecFunction)
typings/jasmine/jasmine.d.ts:324
Method
beforeEach
(beforeEachFunction: SpecFunction)
typings/jasmine/jasmine.d.ts:395
Method
buildFailureMessage
(matcherName: string, isNot: boolean, actual: any, ...expected: Array<any>)
typings/jasmine/jasmine.d.ts:138
Method
callFake
By chaining the spy with and.callFake, all calls to the spy will delegate to the supplied function.
typings/jasmine/jasmine.d.ts:428
Method
callThrough
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
Method
children
()
typings/jasmine/jasmine.d.ts:403
Method
compare
(actual: T, expected: T)
typings/jasmine/jasmine.d.ts:118
Method
compareObjects_
(a: any, b: any, mismatchKeys: string[], mismatchValues: string[])
typings/jasmine/jasmine.d.ts:169
Method
compareRegExps_
(a: RegExp, b: RegExp, mismatchKeys: string[], mismatchValues: string[])
typings/jasmine/jasmine.d.ts:168
next →
1–100 of 212, ranked by callers