unexpected-react
Advanced tools
Changelog
v3.3.2
Object
as their prototype (thanks to Martin Eigenmann @eigenmannmartin for reporting and fixing!)Changelog
v3.3.0
Changelog
v3.2.4
Changelog
v3.2.3
on
clauses in events. It now uses the same default matching flags as all other
assertions. All assertions now use a single function to calculate the options, so the matching flags are always the same
based on the with all children
, with all wrappers
, and exactly
flagsChangelog
v3.2.2
Fixed issue with queried for
when the resulting promise is used, not returning the correct object.
Note that if the result of the query is an HTMLElement, it is now (correctly) the HTMLElement, and not an opaque
object that could be used in a further to have rendered
style assertion. As this should have been the case, although
the tests have been changed, this is considered a patch version issue as this was the intended behaviour - the tests
were sadly wrong. (#26)
Fixed issue that multiple events with arguments would not always use the correct object as the result of the promise. e.g.
expect(component,
'with event click', { /* ... */ },
'with event click', { /* ... */ })
.then(result => {
/* Here the result would have been undefined */
});
Changelog
v3.2.1
Changelog
v3.2.0
eventTarget
in on
clauses of with event
queryTarget
in queried for
Changelog
v3.1.3
Changelog
v3.1.2
queried for
and with event
in the deep renderer (#23 - thanks @janmeier for reporting)