Obtains the type that a promise-returning function can be rejected with. This is so we can use .and.rejectWith() only for functions that return a promise.
Obtains the promised type that a promise-returning function resolves to.
Default number of milliseconds Jasmine will wait for an asynchronous spec to complete.
Maximum number of array elements to display when pretty printing objects. This will also limit the number of keys and values displayed for an object. Elements past this number will be ellipised.
Maximum number of charasters to display when pretty printing objects. Characters past this number will be ellipised.
Maximum object depth the pretty printer will print to. Set this to a lower value to speed up pretty printing if you have large objects.
Add a custom object formatter for the current scope of specs. Note: This is only callable from within a beforeEach, it, or beforeAll.
That will succeed if the actual value being compared is an instance of the specified class/constructor.
That will succeed if the actual value being compared is not null
and not undefined
.
That will succeed if the actual value being compared is empty.
That will succeed if the actual value being compared is null
, undefined
, 0
, false
or anything falsey.
That will succeed if the actual value being compared is not empty.
That will succeed if the actual value being compared is true
or anything truthy.
Generated using TypeDoc
It's like SpyObj, but doesn't verify argument/return types for functions. Useful if TS cannot correctly infer type for complex objects.