2019-02-08 12:45:23 -08:00
|
|
|
package keys
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestCommands(t *testing.T) {
|
2020-07-20 08:12:33 -07:00
|
|
|
rootCommands := Commands("home")
|
2019-02-08 12:45:23 -08:00
|
|
|
assert.NotNil(t, rootCommands)
|
|
|
|
|
|
|
|
// Commands are registered
|
2020-03-30 11:30:50 -07:00
|
|
|
assert.Equal(t, 10, len(rootCommands.Commands()))
|
2019-02-08 12:45:23 -08:00
|
|
|
}
|