提交 39ed3f7e 编写于 作者: J Jingwen Owen Ou

Revert "Disable tests"

This reverts commit 65cd2b86aead127224f1911cd6e73aa92f75320a.
上级 a7076123
......@@ -7,7 +7,7 @@ import (
"testing"
)
func _TestSaveConfig(t *testing.T) {
func TestSaveConfig(t *testing.T) {
config := Config{"jingweno", "123"}
file := "./test_support/test"
err := SaveConfig(file, config)
......
......@@ -5,7 +5,7 @@ import (
"testing"
)
func _TestWithArg(t *testing.T) {
func TestWithArg(t *testing.T) {
execCmd := NewExecCmd("git")
execCmd.WithArg("log").WithArg("--no-color")
assert.Equal(t, "git", execCmd.Name)
......
......@@ -6,7 +6,7 @@ import (
"testing"
)
func _TestGitMethods(t *testing.T) {
func TestGitMethods(t *testing.T) {
assert.T(t, strings.Contains(FetchGitDir(), ".git"))
assert.Equal(t, "vim", FetchGitEditor())
assert.Equal(t, "git@github.com:jingweno/gh.git", FetchGitRemote())
......
......@@ -7,7 +7,7 @@ import (
"testing"
)
func _TestReadTitleAndBody(t *testing.T) {
func TestReadTitleAndBody(t *testing.T) {
message := `A title
A title continues
......
......@@ -5,7 +5,7 @@ import (
"testing"
)
func _TestMustMatchGitUrl(t *testing.T) {
func TestMustMatchGitUrl(t *testing.T) {
assert.Equal(t, "git://github.com/jingweno/gh.git", mustMatchGitUrl("git://github.com/jingweno/gh.git")[0])
assert.Equal(t, "git@github.com:jingweno/gh.git", mustMatchGitUrl("git@github.com:jingweno/gh.git")[0])
assert.Equal(t, "https://github.com/jingweno/gh.git", mustMatchGitUrl("https://github.com/jingweno/gh.git")[0])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册