Skip to content

Commit

Permalink
Update test to toHaveBeenCalledWith()
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Duarte committed Oct 13, 2020
1 parent e1ffd1e commit 8972a8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1416,7 +1416,9 @@ describe('createCss: mixed(SSR & Client)', () => {
[mediaString]: { color: 'red' },
}).toString();
// tslint:disable-next-line
expect(console.warn).toHaveBeenCalled();
expect(console.warn).toHaveBeenCalledWith(
'The property "color" with media query @media (min-width: 700px) could cause specificity issues due to injection order. We recommend abstracting media queries used more than once onto the config object. Learn more: https://stitches.dev/docs/breakpoints'
);
});

test('should inject inline media queries after normal rules', () => {
Expand Down

0 comments on commit 8972a8a

Please sign in to comment.