From 5cb42a819d0d52a6d0e319a0ade84f010ac3af8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aliz=C3=A9=20Debray?= Date: Tue, 8 Oct 2024 17:08:40 +0200 Subject: [PATCH] fix unit tests --- .../styles/tests/utilities/mixins.test.scss | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/packages/styles/tests/utilities/mixins.test.scss b/packages/styles/tests/utilities/mixins.test.scss index 8792c4c959..5e7a163608 100644 --- a/packages/styles/tests/utilities/mixins.test.scss +++ b/packages/styles/tests/utilities/mixins.test.scss @@ -3,9 +3,23 @@ @use 'tests/jest'; @use 'src/utilities/mixins'; - .test { - @include mixins.generate-utilities('font-weight', '400', 'fw', 'normal'); - @include mixins.generate-utilities('font-size', '1.5rem', 'fs', 'large', 'sm'); - @include mixins.generate-responsive-utilities('row-gap', '48px', 'rg', '48'); + @include mixins.generate-utilities( + $group: 'font-weight', + $tokens: ( + post-utility-font-weight-normal: 400, + ), + $properties: font-weight, + $prefix: 'fw' + ); + + @include mixins.generate-utilities( + $group: 'gutter', + $tokens: ( + post-utility-gutter-12: 12px, + ), + $properties: (--gutter-x, --gutter-y), + $prefix: 'g', + $infix: '-lg' + ); }