mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
evdev: fix test
This commit is contained in:
@@ -194,6 +194,10 @@ func TestIsKeyboard(t *testing.T) {
|
||||
mockDevice := mocks.NewMockEvdevDevice(t)
|
||||
mockDevice.EXPECT().Name().Return(tt.devName, nil).Once()
|
||||
|
||||
if !tt.expected {
|
||||
mockDevice.EXPECT().State(evdev.EvType(evKeyType)).Return(evdev.StateMap{}, nil).Maybe()
|
||||
}
|
||||
|
||||
result := isKeyboard(mockDevice)
|
||||
assert.Equal(t, tt.expected, result)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user