Skip to content

Commit 2ae6337

Browse files
Merge branch 'highlighting-assertion-fixtures' into multiple-lines-stage-add
2 parents 7ccd340 + 4cfdeee commit 2ae6337

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/assertions/highlighting_assertion.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package assertions
22

33
import (
4-
"bytes"
54
"errors"
65
"fmt"
76
"strings"
@@ -33,7 +32,7 @@ func (a *HighlightingAssertion) Run(result executable.ExecutableResult, logger *
3332
}()
3433

3534
// Presence of ANSI coloring sequence implies that matches should be highlighted
36-
a.matchesShouldbeHighlighted = bytes.Contains(result.Stdout, []byte("\033[01;31m"))
35+
a.matchesShouldbeHighlighted = strings.Contains(a.ExpectedOutput, "\033[01;31m")
3736
a.logger = logger.Clone()
3837
a.actualResult = result
3938

0 commit comments

Comments
 (0)