- $timeout and $immediate both return a promise if no callback provided, as per v2.1 of jpex-defaults
- Fixed a bug where
$promise
was attempting toflush
real promises that don't have aflush
method. - Fixed a bug where
$promise
was outputting a warning when a promise was rejected, even if it was then caught by another promise.
- Complete redesign of the background code
Jpex.mock.children
becomesJpex.$children
Jpex.mock.descendants
becomesJpex.$descendants
Jpex.mock.instances
becomesJpex.$instances
Jpex.mock.get
becomesJpex.$get
Jpex.mock.set
becomesJpex.$set
Jpex.mock.unset
becomesJpex.$unset
Jpex.mock.inject
becomesJpex.$inject
Jpex.mock.beforeInvoke
becomesJpex.$beforeInvoke
Jpex.mock.afterInvoke
becomesJpex.$afterInvoke
Jpex.mock.unsetDefaults
removed- Added
Jpex.$on
to attach event listeners - Added
$document
and$window
factories. - Added
$stub
method as well as$autoStub
and$stubFn
properties, allowing you to automatically stub all functions of a factory.
- Compatibility compliance with Jpex 1.4.0.
- $log now correctly implements the $ilog interface
Class.mock.create
/Class.mock.freeze
creates properties from child/nested interfaces
- Create and Freeze methods added
- Interfaces functionality added
- Already-resolved $promises can now be added to using
.then
and.catch
$promise.all
should always resolve in one flush action (unless there are linked outstanding promises)