Skip to content

Commit

Permalink
fix: replaces forgotten ReplaceAll (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
mavogel authored Feb 24, 2020
1 parent 9ea0a8d commit e4df86f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ digraph fsm {
"intermediate";
"open";
}`
normalizedGot := strings.Replace(got, "\n", "", -1)
normalizedGot := strings.ReplaceAll(got, "\n", "")
normalizedWanted := strings.ReplaceAll(wanted, "\n", "")
if normalizedGot != normalizedWanted {
t.Errorf("build graphivz graph failed. \nwanted \n%s\nand got \n%s\n", wanted, got)
Expand Down Expand Up @@ -58,7 +58,7 @@ graph fsm
intermediate -->|part-close| closed
open -->|close| closed
`
normalizedGot := strings.Replace(got, "\n", "", -1)
normalizedGot := strings.ReplaceAll(got, "\n", "")
normalizedWanted := strings.ReplaceAll(wanted, "\n", "")
if normalizedGot != normalizedWanted {
t.Errorf("build mermaid graph failed. \nwanted \n%s\nand got \n%s\n", wanted, got)
Expand Down

0 comments on commit e4df86f

Please sign in to comment.