Add ERRORS.md to anchor test
@@ -12,7 +12,8 @@ import (
func TestDocs_Links(t *testing.T) {
helper := test.New(t)
- raw, err := ioutil.ReadFile("README.md")
+ for _, file := range []string{"README.md", "ERRORS.md"} {
+ raw, err := ioutil.ReadFile(file)
helper.Must(err)
regexLinks := regexp.MustCompile(`]\(#([^)]+)\)`)
@@ -64,3 +65,4 @@ func TestDocs_Links(t *testing.T) {
}
}
}
+}
