Fixing termdash_test.

This commit is contained in:
Jakub Sobon 2019-03-30 01:46:55 -04:00
parent efa673a3e3
commit ad0b42162f
No known key found for this signature in database
GPG Key ID: F2451A77FB05D3B7
1 changed files with 2 additions and 2 deletions

View File

@ -241,7 +241,7 @@ func TestRun(t *testing.T) {
events: []terminalapi.Event{
&terminalapi.Mouse{Position: image.Point{0, 0}, Button: mouse.ButtonLeft},
},
wantProcessed: 3,
wantProcessed: 2,
want: func(size image.Point) *faketerm.Terminal {
ft := faketerm.MustNew(size)
@ -359,7 +359,7 @@ func TestRun(t *testing.T) {
events: []terminalapi.Event{
&terminalapi.Mouse{Position: image.Point{0, 0}, Button: mouse.ButtonWheelUp},
},
wantProcessed: 4,
wantProcessed: 3,
after: func(eh *eventHandlers) error {
want := terminalapi.Mouse{Position: image.Point{0, 0}, Button: mouse.ButtonWheelUp}
if diff := pretty.Compare(want, eh.mouseSub.get()); diff != "" {