mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
better namespacing for assertions
This commit is contained in:
@ -16,8 +16,8 @@ var Stash = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
shell.GitAddAll()
|
||||
},
|
||||
Run: func(shell *Shell, input *Input, assert *Assert, keys config.KeybindingConfig) {
|
||||
assert.StashCount(0)
|
||||
assert.WorkingTreeFileCount(1)
|
||||
assert.Model().StashCount(0)
|
||||
assert.Model().WorkingTreeFileCount(1)
|
||||
|
||||
input.Press(keys.Files.ViewStashOptions)
|
||||
|
||||
@ -25,7 +25,7 @@ var Stash = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
|
||||
input.Prompt().Title(Equals("Stash changes")).Type("my stashed file").Confirm()
|
||||
|
||||
assert.StashCount(1)
|
||||
assert.WorkingTreeFileCount(0)
|
||||
assert.Model().StashCount(1)
|
||||
assert.Model().WorkingTreeFileCount(0)
|
||||
},
|
||||
})
|
||||
|
Reference in New Issue
Block a user