Skip to content

Commit

Permalink
fix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhupesh-V committed Jan 26, 2021
1 parent 60a1617 commit 2b7375a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions areyouok_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,18 +153,18 @@ func Test_getLinks(t *testing.T) {
}
})
t.Run("check list of JSON", func(t *testing.T) {
valid_links := map[string][]string{
valid := map[string][]string{
"CODE_OF_CONDUCT.md": {
"https://www.contributor-covenant.org/version/1/4/code-of-conduct.html",
"https://www.contributor-covenant.org",
"https://www.contributor-covenant.org/faq",
},
}
j2, _ := json.MarshalIndent(a2, "", " ")
v, _ := json.MarshalIndent(valid_links, "", " ")
j2, _ := json.MarshalIndent(a2, "", " ")
v, _ := json.MarshalIndent(valid, "", " ")
result, err := AreEqualJSON(string(v), string(j2))
if !result || err != nil {
t.Errorf("getLinks() want %s got %s", valid_links, a2)
t.Errorf("getLinks() want %s got %s", valid, a2)
}
})
}

0 comments on commit 2b7375a

Please sign in to comment.