You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should not provide a fixer for this case, because we can't determine if the matcher value is meant to be a property or a value (since the accessor could either be the name of a property, or the index of one) so can't correctly fix it.
e.g.
expect(el.style[computed]).toEqual('padding');
// should become
expect(el.style[computed]).toHaveStyle({ padding: expect.anything() });
// but instead becomes
expect(el.style[computed]).toHaveStyle('padding');
expect(el.style[computed]).toEqual('padding');
// should become
expect(el.style[computed]).toHaveStyle({ [computed]: '5px' });
expect(el.style[computed]).toHaveStyle({ padding: expect.anything() });
// but instead becomes
expect(el.style[computed]).toHaveStyle({ '5px': expect.anything() });
This errors:
We should not provide a fixer for this case, because we can't determine if the matcher value is meant to be a property or a value (since the accessor could either be the name of a property, or the index of one) so can't correctly fix it.
e.g.
(because of #264)
The text was updated successfully, but these errors were encountered: