From 4f2841dbdca13763757b7e306d23ac56cff3e7d8 Mon Sep 17 00:00:00 2001 From: Beni Cherniavsky-Paskin Date: Tue, 11 May 2021 12:12:07 +0300 Subject: [PATCH] TestAsk: ensure `vi` is used in Editor tests --- survey_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/survey_test.go b/survey_test.go index ed5299fc..2d6b636e 100644 --- a/survey_test.go +++ b/survey_test.go @@ -150,12 +150,14 @@ func TestAsk(t *testing.T) { { Name: "commit-message", Prompt: &Editor{ + Editor: "vi", Message: "Edit git commit message", }, }, { Name: "commit-message-validated", Prompt: &Editor{ + Editor: "vi", Message: "Edit git commit message", }, Validate: func(v interface{}) error {