ExpectQuestion calls ReceiveQuestion and asserts that the received survey prompt matches `question`
(t *testing.T, question survey.Prompt)
| 299 | |
| 300 | // ExpectQuestion calls ReceiveQuestion and asserts that the received survey prompt matches `question` |
| 301 | func (m *AskMocker) ExpectQuestion(t *testing.T, question survey.Prompt) *QuestionWrapper { |
| 302 | q := m.ReceiveQuestion() |
| 303 | assert.Equal(t, question, q.Question) |
| 304 | return q |
| 305 | } |
| 306 | |
| 307 | type QuestionWrapper struct { |
| 308 | // in case you need it |