Skip to content

Commit

Permalink
modify more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
purpleclay committed Dec 21, 2024
1 parent 6258c44 commit 6a98754
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions restore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import (
)

func TestRestoreUsingForUntrackedFiles(t *testing.T) {
gittest.InitRepository(t, gittest.WithFiles("README.md", ".github/ci.yaml", "go.mod"))
gittest.InitRepository(t, gittest.WithFiles("main.go", ".github/ci.yaml", "go.mod"))

untracked := [2]git.FileStatusIndicator{git.Untracked, git.Untracked}

client, _ := git.NewClient()
err := client.RestoreUsing([]git.FileStatus{
{Indicators: untracked, Path: "README.md"},
{Indicators: untracked, Path: "main.go"},
{Indicators: untracked, Path: ".github/"},
{Indicators: untracked, Path: "go.mod"},
})
Expand Down

0 comments on commit 6a98754

Please sign in to comment.