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
{{ message }}
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.
Im trying to use toHaveCss() matcher with integer values:
expect($('<div style="position:fixed; bottom:0; left:0; right:0; top:0; z-index:10001;"></div>').toHaveCss({bottom: 0, top: 0});
>>>TypeErroTypeError: value.replace is not a function in http://localhost:8080/tests/lib/jasmine/jasmine-jquery.js (line 394)
Ok, I understand the error, Integer dont have replace() function, but if try with string instead the test fails:
Is there a way to use that matcher with integer values?
P.S.: top could have string value such "0px" but, z-index cant, so this matcher should handle integer and float.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Im trying to use toHaveCss() matcher with integer values:
Ok, I understand the error, Integer dont have replace() function, but if try with string instead the test fails:
Is there a way to use that matcher with integer values?
P.S.: top could have string value such "0px" but, z-index cant, so this matcher should handle integer and float.
The text was updated successfully, but these errors were encountered: