Skip to content

Commit

Permalink
update status format test
Browse files Browse the repository at this point in the history
  • Loading branch information
richardjennings committed Jan 8, 2024
1 parent a7e18a0 commit ca3eef7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/mygit/mygit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func Test_AddFile_Status_Commit(t *testing.T) {
if err := Status(buf); err != nil {
t.Fatal(err)
}
assert.Equal(t, "?? hello\n", buf.String())
assert.Equal(t, " ?? hello\n", buf.String())

// add the file to the index
if err := Add("."); err != nil {
Expand All @@ -71,7 +71,7 @@ func Test_AddFile_Status_Commit(t *testing.T) {
if err := Status(buf); err != nil {
t.Fatal(err)
}
assert.Equal(t, "A hello\n", buf.String())
assert.Equal(t, "A hello\n", buf.String())

// create commit
sha, err := Commit()
Expand Down

0 comments on commit ca3eef7

Please sign in to comment.