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

Releases: oliverviljamaa/angularjs-enzyme

Change `mount` signature and only allow components with one-way bound props

05 Dec 12:00
Compare
Choose a tag to compare

Breaking:

  • mount now takes a tagName as the first argument rather than a template
  • only components with onw-way bound props are allowed (bear in mind that this affects all callbacks previously bound with &)

See README.

Expose `mock._template` and `mock._name` for custom matchers

04 Dec 19:13
Compare
Choose a tag to compare

These should be considered internals and are prone to change.

Update view as part of `mock.simulate`

30 Nov 19:42
Compare
Choose a tag to compare

Previously, the .simulate call of mock did not update the view, requiring the test to inject $scope or $rootScope to $apply or $digest in order to test view changes.
This is now fixed and the fact that .simulate updates the view for both mock and TestElementWrapper is reflected in the documentation.

Add `.first` to `TestElementWrapper`

26 Nov 10:30
cbc3960
Compare
Choose a tag to compare

Add `.at` to `TestElementWrapper`

23 Nov 10:48
Compare
Choose a tag to compare

Update Babel and Symbol polyfill

08 Nov 13:04
Compare
Choose a tag to compare
v1.0.3

Update Babel and Symbol polyfill

Update dependencies

08 Nov 12:06
Compare
Choose a tag to compare
v1.0.2

Update dependencies

Pass onAddItem as a one-way binding in example test

07 Nov 11:22
Compare
Choose a tag to compare
v1.0.1

Pass onAddItem as a one-way binding in example test

Remove `options.mockComponents` from `mount`

18 Sep 15:04
Compare
Choose a tag to compare

The option caused errors not straightforward to fix due to an injector often already created before mounting.

Add `options.mockComponents` to `mount`

22 Aug 18:34
Compare
Choose a tag to compare