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