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