fix(indexers): AnimeBytes parsing (#1259)

* change test to expect correct output

* fix regex

* improve error message
This commit is contained in:
Frederick Robinson 2023-11-18 14:07:50 -08:00 committed by GitHub
parent 2bd1a68a94
commit 570af0940b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View file

@ -25,10 +25,10 @@ func TestYamlExpectations(t *testing.T) {
}
for _, parseLine := range d.IRC.Parse.Lines {
for i, test := range parseLine.Tests {
for _, test := range parseLine.Tests {
parseOutput := map[string]string{}
ParseLine(nil, parseLine.Pattern, parseLine.Vars, parseOutput, test.Line, parseLine.Ignore)
assert.Equal(t, test.Expect, parseOutput, "error in expectation %d", i)
assert.Equal(t, test.Expect, parseOutput, "error parsing %s", test.Line)
}
}
}