diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-26 01:20:19 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-26 14:50:47 +1100 |
commit | c8cc18920f0b5ab54a19b9f7bdcf83db3210576f (patch) | |
tree | 60623fbe5504469b9a4f4ca25a9a538b4eee52ce /pkg/commands/git_commands/working_tree_test.go | |
parent | ce3bcfe37cf0c68f501fb09d543e9e212b0eaa61 (diff) |
improve merge conflict flow
Diffstat (limited to 'pkg/commands/git_commands/working_tree_test.go')
-rw-r--r-- | pkg/commands/git_commands/working_tree_test.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/commands/git_commands/working_tree_test.go b/pkg/commands/git_commands/working_tree_test.go index 8b2c70714..e4e884ce4 100644 --- a/pkg/commands/git_commands/working_tree_test.go +++ b/pkg/commands/git_commands/working_tree_test.go @@ -23,6 +23,16 @@ func TestWorkingTreeStageFile(t *testing.T) { runner.CheckForMissingCalls() } +func TestWorkingTreeStageFiles(t *testing.T) { + runner := oscommands.NewFakeRunner(t). + Expect(`git add -- "test.txt" "test2.txt"`, "", nil) + + instance := buildWorkingTreeCommands(commonDeps{runner: runner}) + + assert.NoError(t, instance.StageFiles([]string{"test.txt", "test2.txt"})) + runner.CheckForMissingCalls() +} + func TestWorkingTreeUnstageFile(t *testing.T) { type scenario struct { testName string |