mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-17 00:18:05 +02:00
better namespacing for assertions
This commit is contained in:
@ -17,7 +17,7 @@ var NewBranch = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
EmptyCommit("commit 3")
|
||||
},
|
||||
Run: func(shell *Shell, input *Input, assert *Assert, keys config.KeybindingConfig) {
|
||||
assert.CommitCount(3)
|
||||
assert.Model().CommitCount(3)
|
||||
|
||||
input.SwitchToCommitsView()
|
||||
assert.Views().Current().Lines(
|
||||
@ -32,7 +32,7 @@ var NewBranch = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
branchName := "my-branch-name"
|
||||
input.Prompt().Title(Equals("New Branch Name")).Type(branchName).Confirm()
|
||||
|
||||
assert.CurrentBranchName(branchName)
|
||||
assert.Model().CurrentBranchName(branchName)
|
||||
|
||||
assert.Views().ByName("commits").Lines(
|
||||
Contains("commit 2"),
|
||||
|
Reference in New Issue
Block a user