* Add home default to other commands. * add defaultNodeHome to rest of commands Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
16 lines
258 B
Go
16 lines
258 B
Go
package keys
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestCommands(t *testing.T) {
|
|
rootCommands := Commands("home")
|
|
assert.NotNil(t, rootCommands)
|
|
|
|
// Commands are registered
|
|
assert.Equal(t, 10, len(rootCommands.Commands()))
|
|
}
|