package cmd

import (
  "testing"
)


func TestShortcutsList(t *testing.T) {
	t.Parallel()

  expected := `create -> apps:create
destroy -> apps:destroy
info -> apps:info
login -> auth:login
logout -> auth:logout
logs -> apps:logs
open -> apps:open
passwd -> auth:passwd
pull -> builds:create
register -> auth:register
rollback -> releases:rollback
run -> apps:run
scale -> ps:scale
sharing -> perms:list
sharing:add -> perms:create
sharing:list -> perms:list
sharing:remove -> perms:delete
whoami -> auth:whoami
`
  actual := sortShortcuts()
  if actual != expected {
    t.Errorf("Expected %s, Got %s", expected, actual)
  }

}
