From e21f84ac7f8f4827837557d6f5be483dd8495a37 Mon Sep 17 00:00:00 2001 From: Mario Carbajal Date: Sun, 19 May 2024 12:54:19 -0300 Subject: [PATCH] add @container to integration tests. --- stylance/tests/style.module.scss | 10 ++++++++++ stylance/tests/test_import_styles.rs | 2 ++ 2 files changed, 12 insertions(+) diff --git a/stylance/tests/style.module.scss b/stylance/tests/style.module.scss index 74217c6..840ac28 100644 --- a/stylance/tests/style.module.scss +++ b/stylance/tests/style.module.scss @@ -79,4 +79,14 @@ $some-scss-variable: 10px; // Scss variable declarations in top scope. @layer; +@container (width > 400px) { + h2 { + font-size: 1.5em; + } + + .style9 { + font-size: 1.5em; + } +} + //eof \ No newline at end of file diff --git a/stylance/tests/test_import_styles.rs b/stylance/tests/test_import_styles.rs index 78ab08f..b9ab8f0 100644 --- a/stylance/tests/test_import_styles.rs +++ b/stylance/tests/test_import_styles.rs @@ -12,6 +12,7 @@ fn test_import_crate_style() { assert_eq!(style::style6, "style6-a331da9"); assert_eq!(style::style7, "style7-a331da9"); assert_eq!(style::style8, "style8-a331da9"); + assert_eq!(style::style9, "style9-a331da9"); assert_eq!(style::style_with_dashes, "style-with-dashes-a331da9"); assert_eq!(style::nested_style, "nested-style-a331da9"); @@ -40,6 +41,7 @@ fn test_import_style() { assert_eq!(style::style6, "style6-a331da9"); assert_eq!(style::style7, "style7-a331da9"); assert_eq!(style::style8, "style8-a331da9"); + assert_eq!(style::style9, "style9-a331da9"); assert_eq!(style::style_with_dashes, "style-with-dashes-a331da9"); assert_eq!(style::nested_style, "nested-style-a331da9");