Skip to content

Commit bad729f

Browse files
committed
Fix Razor template formatting in tests
Added space before closing bracket in <TipContainer> tag and improved readability of the ChildContent property.
1 parent e5d3771 commit bad729f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Blake.IntegrationTests/Commands/BlakeServeCommandTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ This is a tip block that should not be styled with Bootstrap.
137137
Path.Combine(testDir, "Components", "TipContainer.razor"),
138138
@"<div>@ChildContent</div>
139139
@code {
140-
[Parameter] public RenderFragment? ChildContent { get; set;
140+
[Parameter] public RenderFragment? ChildContent { get; set; }
141141
}");
142142

143143
FileSystemHelper.CreateRazorTemplate(
@@ -158,7 +158,7 @@ This is a tip block that should not be styled with Bootstrap.
158158
var generatedFile = Path.Combine(testDir, ".generated", "posts", "Post.razor");
159159
Assert.True(File.Exists(generatedFile), "Generated Razor file should exist after serving with options.");
160160
var generatedContent = await File.ReadAllTextAsync(generatedFile);
161-
Assert.Contains("<TipContainer", generatedContent);
161+
Assert.Contains("<TipContainer >", generatedContent);
162162
Assert.DoesNotContain("alert-secondary", generatedContent);
163163
}
164164

0 commit comments

Comments
 (0)