From fd62178c0ea86b6a16e9e457aedec1cb2a28a56e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aliz=C3=A9=20Debray?= Date: Fri, 8 Nov 2024 17:00:12 +0100 Subject: [PATCH] remove pi in tests --- packages/styles/tests/core.test.scss | 12 ------- packages/styles/tests/intranet.test.scss | 12 ------- packages/styles/tests/mixins/icons.test.scss | 33 -------------------- 3 files changed, 57 deletions(-) delete mode 100644 packages/styles/tests/mixins/icons.test.scss diff --git a/packages/styles/tests/core.test.scss b/packages/styles/tests/core.test.scss index c3582ebe80..ce7ec0bf4f 100644 --- a/packages/styles/tests/core.test.scss +++ b/packages/styles/tests/core.test.scss @@ -10,17 +10,5 @@ background-image: url(post.get-colored-svg-url('2063', #ff0080)); background-image: url(post.get-colored-svg-url('2063', post.$white)); - @include post.pi(2063, #ff0080); - @include post.pi(2063, post.$white); - @include post.pi(2063, midnightblue); @include jest.equal(post.strip-unit(12px), 12); - - @each $name, $path in post.$svg-icon-map { - @include post.pi($name); - - @each $color, $value in post.$signal-colors { - @include post.pi($name, $color); - @include post.pi($name, $value); - } - } } diff --git a/packages/styles/tests/intranet.test.scss b/packages/styles/tests/intranet.test.scss index c517c425ec..7333f87e2b 100644 --- a/packages/styles/tests/intranet.test.scss +++ b/packages/styles/tests/intranet.test.scss @@ -7,17 +7,5 @@ background-image: url(post.get-colored-svg-url('2063', #ff0080)); background-image: url(post.get-colored-svg-url('2063', post.$white)); - @include post.pi(2063, #ff0080); - @include post.pi(2063, post.$white); - @include post.pi(2063, midnightblue); @include jest.equal(post.strip-unit(12px), 12); - - @each $name, $path in post.$svg-icon-map { - @include post.pi($name); - - @each $color, $value in post.$signal-colors { - @include post.pi($name, $color); - @include post.pi($name, $value); - } - } } diff --git a/packages/styles/tests/mixins/icons.test.scss b/packages/styles/tests/mixins/icons.test.scss deleted file mode 100644 index 32bafae999..0000000000 --- a/packages/styles/tests/mixins/icons.test.scss +++ /dev/null @@ -1,33 +0,0 @@ -@use 'src/mixins/icons'; - -.t1 { - @include icons.pi(1000); -} - -.t1-a { - @include icons.pi('1000'); -} - -.t2 { - @include icons.pi(1000, #123412); -} - -.t2-a { - @include icons.pi('1000', #123412); -} - -.t3 { - @include icons.pi(1000, 'error'); -} - -.t4 { - @include icons.pi(1000, rgba(12, 20, 30)); -} - -.t5 { - @include icons.pi(1000, midnightblue); -} - -.t6 { - @include icons.pi(1000, rgba(12, 20, 30, 0.2)); -}