From 8972a8a8aa9ab31eb7110daf6bd7ad9d4840219c Mon Sep 17 00:00:00 2001 From: Pedro Duarte Date: Tue, 13 Oct 2020 11:20:04 +0200 Subject: [PATCH] Update test to `toHaveBeenCalledWith()` --- packages/core/tests/index.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/core/tests/index.test.ts b/packages/core/tests/index.test.ts index 6453e127..f8bca09a 100644 --- a/packages/core/tests/index.test.ts +++ b/packages/core/tests/index.test.ts @@ -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', () => {