mirror of
https://github.com/peco/peco.git
synced 2026-09-10 07:16:29 -04:00
Merge pull request #703 from peco/fix-pipeline-test-assertions
Add assertion to TestPipeline
This commit is contained in:
commit
e20b3f4f34
|
|
@ -11,6 +11,7 @@ import (
|
|||
"context"
|
||||
|
||||
"github.com/peco/peco/line"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
type RegexpFilter struct {
|
||||
|
|
@ -144,5 +145,5 @@ barfoo
|
|||
for _, l := range dst.lines {
|
||||
got = append(got, l.DisplayString())
|
||||
}
|
||||
t.Logf("%#v", got)
|
||||
require.Equal(t, []string{"foobar"}, got)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue