1
0
mirror of https://github.com/go-task/task.git synced 2025-02-09 13:47:06 +02:00

assert error message

This commit is contained in:
jaedle 2019-08-19 21:01:01 +02:00
parent ce4e187cbc
commit af5d9c952d

View File

@ -647,5 +647,8 @@ func TestDisplaysErrorOnUnsupportedVersion(t *testing.T) {
Stdout: ioutil.Discard,
Stderr: ioutil.Discard,
}
assert.Error(t, e.Setup())
err := e.Setup()
assert.Error(t, err)
assert.Equal(t, "task: Taskfile versions prior to v2 are not supported anymore", err.Error())
}