better namespacing for assertions

This commit is contained in:
Jesse Duffield 2022-12-27 15:22:31 +11:00
parent be30cbb375
commit 09e80e5f2a
36 changed files with 328 additions and 294 deletions

View file

@ -66,7 +66,7 @@ func TestAssertionFailure(t *testing.T) {
Run: func(shell *Shell, input *Input, assert *Assert, keys config.KeybindingConfig) {
input.Press("a")
input.Press("b")
assert.CommitCount(2)
assert.Model().CommitCount(2)
},
})
driver := &fakeGuiDriver{}
@ -93,7 +93,7 @@ func TestSuccess(t *testing.T) {
Run: func(shell *Shell, input *Input, assert *Assert, keys config.KeybindingConfig) {
input.Press("a")
input.Press("b")
assert.CommitCount(0)
assert.Model().CommitCount(0)
},
})
driver := &fakeGuiDriver{}