From 6a92cb497a778f75f0d72fb493b9aa05a1301ecb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20L=C3=B6rwald?= <10850250+stefanloerwald@users.noreply.github.com> Date: Thu, 4 Jul 2024 12:41:34 +0200 Subject: [PATCH] [deploy] fix order of statements in test case --- Tests_WebCompiler/SassDependencyTests.cs | 9 ++++++++- Tests_WebCompiler/TestCases/Scss/use_with_override.scss | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Tests_WebCompiler/SassDependencyTests.cs b/Tests_WebCompiler/SassDependencyTests.cs index 9d93f97..da5507f 100644 --- a/Tests_WebCompiler/SassDependencyTests.cs +++ b/Tests_WebCompiler/SassDependencyTests.cs @@ -13,7 +13,14 @@ public void TestUseWithOverrides() { var compiler = new SassCompiler(new SassSettings()); var dependencies = compiler.GetDependencies("../../../TestCases/Scss/use_with_override.scss"); - Assert.That(dependencies.Select(Path.GetFileName), Is.EqualTo(new[] {"use_with_override.scss", "dependency.scss", "test.scss", "_variables.scss", "relative.scss", "foo.scss", "_bar.scss" })); + Assert.That(dependencies.Select(Path.GetFileName).OrderBy(v => v), Is.EqualTo(new[] { + "use_with_override.scss", + "dependency.scss", + "test.scss", + "_variables.scss", + "relative.scss", + "foo.scss", + "_bar.scss" }.OrderBy(v => v))); } } } diff --git a/Tests_WebCompiler/TestCases/Scss/use_with_override.scss b/Tests_WebCompiler/TestCases/Scss/use_with_override.scss index 60b1a7e..4ace6b3 100644 --- a/Tests_WebCompiler/TestCases/Scss/use_with_override.scss +++ b/Tests_WebCompiler/TestCases/Scss/use_with_override.scss @@ -2,6 +2,6 @@ /* Overrides */ $color: #ff0000, ); -@import "test.scss", "_variables.scss"; +@use "sub/relative.scss" as *; -@use "sub/relative.scss" as *; \ No newline at end of file +@import "test.scss", "_variables.scss"; \ No newline at end of file