diff options
author | pikomonde <32364823+pikomonde@users.noreply.github.com> | 2024-03-21 02:23:10 +0700 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2024-04-12 08:33:47 +0200 |
commit | 19bef17042c4a9426afcefc89fcc9ce672fb2216 (patch) | |
tree | 82e2a33d3e9ca6bd89d69ef22fcc557c2afafd5f /pkg/commands/git_commands/stash_test.go | |
parent | 170c4ecb8cca77be883f6eebcb46a7631f82ff65 (diff) |
rename sha to hash 10, last remaining sha (hopefully)
Diffstat (limited to 'pkg/commands/git_commands/stash_test.go')
-rw-r--r-- | pkg/commands/git_commands/stash_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/commands/git_commands/stash_test.go b/pkg/commands/git_commands/stash_test.go index fae0a0b5e..35b48e42d 100644 --- a/pkg/commands/git_commands/stash_test.go +++ b/pkg/commands/git_commands/stash_test.go @@ -154,7 +154,7 @@ func TestStashRename(t *testing.T) { index int message string expectedHashCmd []string - shaResult string + hashResult string expectedDropCmd []string expectedStoreCmd []string } @@ -165,7 +165,7 @@ func TestStashRename(t *testing.T) { index: 3, message: "New message", expectedHashCmd: []string{"rev-parse", "refs/stash@{3}"}, - shaResult: "f0d0f20f2f61ffd6d6bfe0752deffa38845a3edd\n", + hashResult: "f0d0f20f2f61ffd6d6bfe0752deffa38845a3edd\n", expectedDropCmd: []string{"stash", "drop", "stash@{3}"}, expectedStoreCmd: []string{"stash", "store", "-m", "New message", "f0d0f20f2f61ffd6d6bfe0752deffa38845a3edd"}, }, @@ -174,7 +174,7 @@ func TestStashRename(t *testing.T) { index: 4, message: "", expectedHashCmd: []string{"rev-parse", "refs/stash@{4}"}, - shaResult: "f0d0f20f2f61ffd6d6bfe0752deffa38845a3edd\n", + hashResult: "f0d0f20f2f61ffd6d6bfe0752deffa38845a3edd\n", expectedDropCmd: []string{"stash", "drop", "stash@{4}"}, expectedStoreCmd: []string{"stash", "store", "f0d0f20f2f61ffd6d6bfe0752deffa38845a3edd"}, }, @@ -184,7 +184,7 @@ func TestStashRename(t *testing.T) { s := s t.Run(s.testName, func(t *testing.T) { runner := oscommands.NewFakeRunner(t). - ExpectGitArgs(s.expectedHashCmd, s.shaResult, nil). + ExpectGitArgs(s.expectedHashCmd, s.hashResult, nil). ExpectGitArgs(s.expectedDropCmd, "", nil). ExpectGitArgs(s.expectedStoreCmd, "", nil) instance := buildStashCommands(commonDeps{runner: runner}) |