Fix broken tests.

This commit is contained in:
Chris Laprun
2018-11-15 11:24:17 +01:00
parent 365d146ff4
commit 5e144c448a
2 changed files with 11 additions and 5 deletions

View File

@@ -72,7 +72,7 @@ func TestCompletions(t *testing.T) {
t.Run(tt.name, func(t *testing.T) {
a := complete.Args{Last: tt.last}
got := tt.handler(tt.cmd, a, context)
got := tt.handler(tt.cmd, completion.NewParsedArgs(a, tt.cmd), context)
if !equal(got, tt.want) {
t.Errorf("Failed %s: got: %q, want: %q", t.Name(), got, tt.want)