File tree Expand file tree Collapse file tree 6 files changed +13
-0
lines changed
pkg/integration/tests/stash Expand file tree Collapse file tree 6 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ var Apply = NewIntegrationTest(NewIntegrationTestArgs{
12
12
SetupConfig : func (config * config.AppConfig ) {},
13
13
SetupRepo : func (shell * Shell ) {
14
14
shell .EmptyCommit ("initial commit" )
15
+ shell .NewBranch ("stash" )
16
+ shell .Checkout ("master" )
15
17
shell .CreateFile ("file" , "content" )
16
18
shell .GitAddAll ()
17
19
shell .Stash ("stash one" )
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ var CreateBranch = NewIntegrationTest(NewIntegrationTestArgs{
12
12
SetupConfig : func (config * config.AppConfig ) {},
13
13
SetupRepo : func (shell * Shell ) {
14
14
shell .EmptyCommit ("initial commit" )
15
+ shell .NewBranch ("stash" )
16
+ shell .Checkout ("master" )
15
17
shell .CreateFile ("myfile" , "content" )
16
18
shell .GitAddAll ()
17
19
shell .Stash ("stash one" )
@@ -39,6 +41,7 @@ var CreateBranch = NewIntegrationTest(NewIntegrationTestArgs{
39
41
Lines (
40
42
Contains ("new_branch" ).IsSelected (),
41
43
Contains ("master" ),
44
+ Contains ("stash" ),
42
45
).
43
46
PressEnter ()
44
47
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ var Drop = NewIntegrationTest(NewIntegrationTestArgs{
12
12
SetupConfig : func (config * config.AppConfig ) {},
13
13
SetupRepo : func (shell * Shell ) {
14
14
shell .EmptyCommit ("initial commit" )
15
+ shell .NewBranch ("stash" )
16
+ shell .Checkout ("master" )
15
17
shell .CreateFile ("file" , "content" )
16
18
shell .GitAddAll ()
17
19
shell .Stash ("stash one" )
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ var Pop = NewIntegrationTest(NewIntegrationTestArgs{
12
12
SetupConfig : func (config * config.AppConfig ) {},
13
13
SetupRepo : func (shell * Shell ) {
14
14
shell .EmptyCommit ("initial commit" )
15
+ shell .NewBranch ("stash" )
16
+ shell .Checkout ("master" )
15
17
shell .CreateFile ("file" , "content" )
16
18
shell .GitAddAll ()
17
19
shell .Stash ("stash one" )
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ var Rename = NewIntegrationTest(NewIntegrationTestArgs{
13
13
SetupRepo : func (shell * Shell ) {
14
14
shell .
15
15
EmptyCommit ("blah" ).
16
+ NewBranch ("stash" ).
17
+ Checkout ("master" ).
16
18
CreateFileAndAdd ("file-1" , "change to stash1" ).
17
19
Stash ("foo" ).
18
20
CreateFileAndAdd ("file-2" , "change to stash2" ).
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ var Stash = NewIntegrationTest(NewIntegrationTestArgs{
12
12
SetupConfig : func (config * config.AppConfig ) {},
13
13
SetupRepo : func (shell * Shell ) {
14
14
shell .EmptyCommit ("initial commit" )
15
+ shell .NewBranch ("stash" )
16
+ shell .Checkout ("master" )
15
17
shell .CreateFile ("file" , "content" )
16
18
shell .GitAddAll ()
17
19
},
You can’t perform that action at this time.
0 commit comments