This repository has been archived by the owner on Apr 1, 2020. It is now read-only.
Releases: oliverviljamaa/angularjs-enzyme
Releases · oliverviljamaa/angularjs-enzyme
Change `mount` signature and only allow components with one-way bound props
Breaking:
mount
now takes atagName
as the first argument rather than atemplate
- 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
These should be considered internals and are prone to change.
Update view as part of `mock.simulate`
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`
Add `.at` to `TestElementWrapper`
Update Babel and Symbol polyfill
v1.0.3 Update Babel and Symbol polyfill
Update dependencies
v1.0.2 Update dependencies
Pass onAddItem as a one-way binding in example test
v1.0.1 Pass onAddItem as a one-way binding in example test
Remove `options.mockComponents` from `mount`
The option caused errors not straightforward to fix due to an injector often already created before mounting.