|
|
@@ -20,7 +20,7 @@ func Test_Model_Init(t *testing.T) {
|
|
|
|
|
|
func Test_Model_Update_quit_on_keymsg(t *testing.T) {
|
|
|
testModel := Model{}
|
|
|
- testKey := tea.Key{Type: tea.KeyRunes, Runes: []rune{'q'}}
|
|
|
+ testKey := tea.Key{Type: tea.KeyCtrlC}
|
|
|
testMsg := tea.KeyMsg(testKey)
|
|
|
|
|
|
model, cmd := testModel.Update(testMsg)
|