Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

css() method won't take hex #63

Open
ghost opened this issue Mar 24, 2015 · 0 comments
Open

css() method won't take hex #63

ghost opened this issue Mar 24, 2015 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 24, 2015

Hi Everyone,

I noticed that when I try to use a hex color value such as #ff0000 that it won't pass the test. However, if I use rgb() it will pass the text. For example:
expect($('div')).to.have.css('color', '#ff0000'); ---> will NOT pass
expect($('div')).to.have.css('color', 'rgb(255, 0, 0)');" --> WILL pass

I am writing the tests in the following json doc:
https://github.com/BlueOceanView/freecodecamp/blob/master/seed_data/coursewares.json#L78

I am wondering why this is so?

Thanks!
Julie (a.k.a. BlueOceanView)

charlierudolph added a commit that referenced this issue Apr 6, 2015
Issue #63 fix - .css() test won't accept hex values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants