We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 153a937 commit d315208Copy full SHA for d315208
frontend/src/styles/__tests__/media.test.ts
@@ -3,12 +3,14 @@ import { media, sizes } from '../media';
3
4
describe('media', () => {
5
it('should return media query in css', () => {
6
- const mediaQuery = media.small`color: red;`.join('');
+ const mediaQuery = media.small`color: red;`.join('').replace(/ /g, '');
7
const cssVersion = css`
8
@media (min-width: ${sizes.small}px) {
9
color: red;
10
}
11
- `.join('');
+ `
12
+ .join('')
13
+ .replace(/ /g, '');
14
expect(mediaQuery).toEqual(cssVersion);
15
});
16
0 commit comments