Preserve version one error record scopes
This commit is contained in:
@@ -100,7 +100,7 @@ func TestStageIDIsLiteralInMarkdownAndExactInYAML(t *testing.T) {
|
||||
snapshot := Snapshot{
|
||||
StageNames: []string{StageLabel(0, "grammar", &id), StageLabel(1, "grammar", nil)},
|
||||
WorkUnits: []WorkUnit{{StageIndex: 0, ChunkIndex: 0, State: "completed", ErrorCount: 1}},
|
||||
Errors: []ErrorRecord{{Scope: "work_unit", StageID: &id}},
|
||||
Errors: []ErrorRecord{{Scope: "work_unit", FailureDetails: FailureDetails{StageID: &id}}},
|
||||
}
|
||||
header := `| Chunk | 1: grammar (\[party\](https://example.invalid/) \*bold\* \_emphasis\_ \~\~strike\~\~ \\| <tag>) | 2: grammar |`
|
||||
if rows := markdownTableRows(string(Markdown(snapshot))); len(rows) == 0 || rows[0] != header {
|
||||
|
||||
Reference in New Issue
Block a user