Skip to content
This repository has been archived by the owner on Aug 28, 2020. It is now read-only.

Latest commit

 

History

History
40 lines (35 loc) · 1.62 KB

changelog.md

File metadata and controls

40 lines (35 loc) · 1.62 KB

Change Log

2.1.0

  • $timeout and $immediate both return a promise if no callback provided, as per v2.1 of jpex-defaults

2.0.1

  • Fixed a bug where $promise was attempting to flush real promises that don't have a flush method.
  • Fixed a bug where $promise was outputting a warning when a promise was rejected, even if it was then caught by another promise.

2.0.0

  • Complete redesign of the background code
  • Jpex.mock.children becomes Jpex.$children
  • Jpex.mock.descendants becomes Jpex.$descendants
  • Jpex.mock.instances becomes Jpex.$instances
  • Jpex.mock.get becomes Jpex.$get
  • Jpex.mock.set becomes Jpex.$set
  • Jpex.mock.unset becomes Jpex.$unset
  • Jpex.mock.inject becomes Jpex.$inject
  • Jpex.mock.beforeInvoke becomes Jpex.$beforeInvoke
  • Jpex.mock.afterInvoke becomes Jpex.$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.

1.4.0

  • Compatibility compliance with Jpex 1.4.0.

1.3.1

Bugs

  • $log now correctly implements the $ilog interface
  • Class.mock.create / Class.mock.freeze creates properties from child/nested interfaces

1.3.0

Features

  • Create and Freeze methods added
  • Interfaces functionality added

Bugs

  • 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)