- $timeout and $immediate both return a promise if no callback provided, as per v2.1 of jpex-defaults
- Fixed a bug where
$promisewas attempting toflushreal promises that don't have aflushmethod. - Fixed a bug where
$promisewas 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.childrenbecomesJpex.$childrenJpex.mock.descendantsbecomesJpex.$descendantsJpex.mock.instancesbecomesJpex.$instancesJpex.mock.getbecomesJpex.$getJpex.mock.setbecomesJpex.$setJpex.mock.unsetbecomesJpex.$unsetJpex.mock.injectbecomesJpex.$injectJpex.mock.beforeInvokebecomesJpex.$beforeInvokeJpex.mock.afterInvokebecomesJpex.$afterInvokeJpex.mock.unsetDefaultsremoved- Added
Jpex.$onto attach event listeners - Added
$documentand$windowfactories. - Added
$stubmethod as well as$autoStuband$stubFnproperties, 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.freezecreates properties from child/nested interfaces
- Create and Freeze methods added
- Interfaces functionality added
- Already-resolved $promises can now be added to using
.thenand.catch $promise.allshould always resolve in one flush action (unless there are linked outstanding promises)