Jasmine Promise Matchers are custom Jasmine matchers to make testing Angular promises easier.
Below is a list of all snippets currently supported by this package and the Tab trigger of each one.
To use the expectations, please first install them with the following snippet in a BeforeEach, after having called angular.mock.module:
installPromiseMatchers();- ipmTab
expect(promise).toBePromise();- tbpTabexpect(promise).toBeResolved();- tbrsTabexpect(promise).toBeResolvedWith('result');- tbrswTabexpect(promise).toBeRejected();- tbrjTabexpect(promise).toBeRejectedWith('error');- tbrjwTab