Skip to content

Commit e597746

Browse files
committed
review
1 parent 06e4ef5 commit e597746

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/librarian/golang/module_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -664,8 +664,8 @@ func TestUpdateSnippetDirectory(t *testing.T) {
664664
}
665665
}
666666
`
667-
// json is reformated.
668-
after := `{
667+
// json is formatted by writeMetadata function in snippetmetadata package.
668+
want := `{
669669
"clientLibrary": {
670670
"apis": [
671671
{
@@ -690,7 +690,7 @@ func TestUpdateSnippetDirectory(t *testing.T) {
690690
t.Fatal(err)
691691
}
692692
got := string(content)
693-
if diff := cmp.Diff(after, got); diff != "" {
693+
if diff := cmp.Diff(want, got); diff != "" {
694694
t.Errorf("mismatch (-want +got):\n%s", diff)
695695
}
696696
}

0 commit comments

Comments
 (0)