Skip to content

Commit

Permalink
Revered original empty placeholder output comment
Browse files Browse the repository at this point in the history
  • Loading branch information
robearlam committed Aug 7, 2024
1 parent aebec3b commit 11e03b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public override async Task ProcessAsync(TagHelperContext context, TagHelperOutpu

if (!foundPlaceholderFeatures)
{
output.Content.SetHtmlContent($"<div className=\"sc-jss-empty-placeholder\"></div>");
output.Content.SetHtmlContent($"<!-- {string.Format(Resources.Warning_PlaceholderWasEmpty, placeholderName)} -->");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public async Task ProcessAsync_PlaceholderNameInLayoutServiceResponseAndPlacehol
await sut.ProcessAsync(tagHelperContext, tagHelperOutput);

// Assert
tagHelperOutput.Content.GetContent().Should().Be($"<div className=\"sc-jss-empty-placeholder\"></div>");
tagHelperOutput.Content.GetContent().Should().Be($"<!-- Placeholder '{PlaceHolderWithNoComponentsName}' was empty. -->");
}

[Theory]
Expand Down

0 comments on commit 11e03b9

Please sign in to comment.