Skip to content

Commit 44efa67

Browse files
committed
testing
1 parent 624265f commit 44efa67

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

cli/dotfiles_test.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@ func TestDotfiles(t *testing.T) {
3939
err = c.Run()
4040
assert.NoError(t, err)
4141

42+
c = exec.Command("git", "config", "user.email", "ci@coder.com")
43+
c.Dir = testRepo
44+
err = c.Run()
45+
assert.NoError(t, err)
46+
47+
c = exec.Command("git", "config", "user.name", "C I")
48+
c.Dir = testRepo
49+
err = c.Run()
50+
assert.NoError(t, err)
51+
4252
c = exec.Command("git", "commit", "-m", `"add .bashrc"`)
4353
c.Dir = testRepo
4454
out, err := c.CombinedOutput()
@@ -72,6 +82,16 @@ func TestDotfiles(t *testing.T) {
7282
err = c.Run()
7383
assert.NoError(t, err)
7484

85+
c = exec.Command("git", "config", "user.email", "ci@coder.com")
86+
c.Dir = testRepo
87+
err = c.Run()
88+
assert.NoError(t, err)
89+
90+
c = exec.Command("git", "config", "user.name", "C I")
91+
c.Dir = testRepo
92+
err = c.Run()
93+
assert.NoError(t, err)
94+
7595
c = exec.Command("git", "commit", "-m", `"add install.sh"`)
7696
c.Dir = testRepo
7797
err = c.Run()

0 commit comments

Comments
 (0)