summaryrefslogtreecommitdiffstats
path: root/pkg/commands/files_test.go
diff options
context:
space:
mode:
authorRyooooooga <eial5q265e5@gmail.com>2021-08-13 22:15:06 +0900
committerRyooooooga <eial5q265e5@gmail.com>2021-08-13 22:15:06 +0900
commit0740409f43bfc2fb154c65aaece7abeca78d1e9b (patch)
treef898732d64b1a085726068258eb686ae9b7cc908 /pkg/commands/files_test.go
parent37700908cc9c0267eb67c693f166f052ca12fd7f (diff)
fix test
Diffstat (limited to 'pkg/commands/files_test.go')
-rw-r--r--pkg/commands/files_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/commands/files_test.go b/pkg/commands/files_test.go
index fd4b9f69f..01c1a6793 100644
--- a/pkg/commands/files_test.go
+++ b/pkg/commands/files_test.go
@@ -455,7 +455,7 @@ func TestGitCommandCheckoutFile(t *testing.T) {
"test999.txt",
test.CreateMockCommand(t, []*test.CommandSwapper{
{
- Expect: "git checkout 11af912 test999.txt",
+ Expect: "git checkout 11af912 -- test999.txt",
Replace: "echo",
},
}),
@@ -469,7 +469,7 @@ func TestGitCommandCheckoutFile(t *testing.T) {
"test999.txt",
test.CreateMockCommand(t, []*test.CommandSwapper{
{
- Expect: "git checkout 11af912 test999.txt",
+ Expect: "git checkout 11af912 -- test999.txt",
Replace: "test",
},
}),
@@ -606,7 +606,7 @@ func TestGitCommandDiscardOldFileChanges(t *testing.T) {
Replace: "echo",
},
{
- Expect: "git checkout HEAD^ test999.txt",
+ Expect: "git checkout HEAD^ -- test999.txt",
Replace: "echo",
},
{