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

Improve css expectations in tests #5819

Merged
merged 2 commits into from
Oct 18, 2021

Conversation

RobinMalfait
Copy link
Contributor

@RobinMalfait RobinMalfait commented Oct 18, 2021

This PR will use String.raw instead of the custom css function for assertions in tests.
This allows us to match against "real" css, where only a single escape character \ is necessary.

.mobile\:font-bold {}

Instead of

.mobile\\:font-bold {}

@RobinMalfait RobinMalfait changed the title improve css expectations in tests Improve css expectations in tests Oct 18, 2021
This will allow us to write code like:
```css
.mobile\:font-bold {}
```
Instead of
```css
.mobile\\:font-bold {}
```

Which resembles "real" css way better in our tests.
@RobinMalfait RobinMalfait force-pushed the improve-css-expectations-in-tests branch from 1f4604c to 118c02d Compare October 18, 2021 10:06
@RobinMalfait RobinMalfait merged commit f12c0e1 into master Oct 18, 2021
@RobinMalfait RobinMalfait deleted the improve-css-expectations-in-tests branch October 18, 2021 10:08
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

Successfully merging this pull request may close these issues.

None yet

1 participant