-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathModuleInitializer.cs
More file actions
31 lines (26 loc) · 827 Bytes
/
ModuleInitializer.cs
File metadata and controls
31 lines (26 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
public static class ModuleInitializer
{
[ModuleInitializer]
public static void Initialize()
{
#region scrubbers
// remove some noise from the html snapshot
VerifierSettings.ScrubEmptyLines();
BlazorScrubber.ScrubCommentLines();
VerifierSettings.ScrubLinesWithReplace(
line =>
{
var scrubbed = line.Replace("<!--!-->", "");
if (string.IsNullOrWhiteSpace(scrubbed))
{
return null;
}
return scrubbed;
});
HtmlPrettyPrint.All();
VerifierSettings.ScrubLinesContaining("<script src=\"_framework/dotnet.");
#endregion
VerifierSettings.UseSsimForPng();
VerifierSettings.InitializePlugins();
}
}