Fix button for uploading OPML
This commit is contained in:
parent
75000150bf
commit
4cab55c211
6 changed files with 277 additions and 14 deletions
|
|
@ -34,14 +34,17 @@ func TestMinifyCSS(t *testing.T) {
|
|||
// Displays error messages if there are any parse errors
|
||||
func TestErrorMessages(t *testing.T) {
|
||||
// Initialize test data
|
||||
h := HTMLData{}
|
||||
parseResult := []ParseResult{
|
||||
{IsError: true, Msg: "Error 1"},
|
||||
{IsError: true, Msg: "Error 2"},
|
||||
}
|
||||
|
||||
h := HTMLData{
|
||||
ParseResult: parseResult,
|
||||
}
|
||||
|
||||
// Invoke function under test
|
||||
result := fullHTML(h, parseResult)
|
||||
result := fullHTML(h)
|
||||
|
||||
// Assert that the result contains the error messages
|
||||
if !strings.Contains(result, "Error 1") || !strings.Contains(result, "Error 2") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue