Improve css expectations in tests (#5819)

* use String.raw for css escapes

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.

* use String.raw in integration tests as well
This commit is contained in:
Robin Malfait 2021-10-18 12:08:48 +02:00 • committed by GitHub
parent 5809c4d07c
commit f12c0e1fa5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 154 additions and 161 deletions

View file

@ -188,7 +188,7 @@ describe('watcher', () => {
font-weight: 700;
}
@media (min-width: 768px) {
.md\\:font-medium {
.md\:font-medium {
font-weight: 500;
}
}
@ -225,7 +225,7 @@ describe('watcher', () => {
font-weight: bold;
}
@media (min-width: 800px) {
.md\\:font-medium {
.md\:font-medium {
font-weight: 500;
}
}