Refactor the template variable framework
This commit is contained in:
@@ -738,7 +738,11 @@ func TestRunGenerateHourlyWritesGeneratedTextReport(t *testing.T) {
|
||||
managedReportPath := oneArtifact(t, workspaceRoot, "reports", "hourly", "*.md")
|
||||
assertFileContains(t, rawGeneratedTextPath, `"summary": " Storm chances increase through late morning. "`)
|
||||
assertFileContains(t, validatedGeneratedTextPath, `"summary":"Storm chances increase through late morning."`)
|
||||
assertFileContains(t, renderContextPath, `"ReportTitle": "Hourly Report"`)
|
||||
assertFileContains(t, renderContextPath, `"Report": {`)
|
||||
assertFileContains(t, renderContextPath, `"Title": "Hourly Report"`)
|
||||
assertFileContains(t, renderContextPath, `"Modules": {`)
|
||||
assertFileContains(t, renderContextPath, `"Collected": {`)
|
||||
assertFileContains(t, renderContextPath, `"Derived": {`)
|
||||
assertFileContains(t, managedReportPath, "# Hourly Report")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user