mirror of
https://github.com/gabrie30/ghorg.git
synced 2025-08-06 14:27:28 +02:00
27 lines
499 B
Go
27 lines
499 B
Go
package cmd
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
)
|
|
|
|
func TestDefaultSettings(t *testing.T) {
|
|
Execute()
|
|
protocol := os.Getenv("GHORG_CLONE_PROTOCOL")
|
|
scm := os.Getenv("GHORG_SCM_TYPE")
|
|
cloneType := os.Getenv("GHORG_CLONE_TYPE")
|
|
|
|
if protocol != "https" {
|
|
t.Errorf("Default protocol should be https, got: %v", protocol)
|
|
}
|
|
|
|
if scm != "github" {
|
|
t.Errorf("Default scm should be github, got: %v", scm)
|
|
}
|
|
|
|
if cloneType != "org" {
|
|
t.Errorf("Default clone type should be org, got: %v", cloneType)
|
|
}
|
|
|
|
}
|