Skip to content

Commit

Permalink
[deploy] fix order of statements in test case
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanloerwald committed Jul 4, 2024
1 parent ffa0af2 commit 6a92cb4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion Tests_WebCompiler/SassDependencyTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
}
}
}
4 changes: 2 additions & 2 deletions Tests_WebCompiler/TestCases/Scss/use_with_override.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
/* Overrides */
$color: #ff0000, );

@import "test.scss", "_variables.scss";
@use "sub/relative.scss" as *;

@use "sub/relative.scss" as *;
@import "test.scss", "_variables.scss";

0 comments on commit 6a92cb4

Please sign in to comment.