summaryrefslogtreecommitdiffstats
path: root/pkg/integration/tests/stash
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-12-27 15:22:31 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-12-27 21:26:18 +1100
commit09e80e5f2a56e5d13262e6d01c68cb4054bad6f4 (patch)
tree84e9280ce674ead35e15348d0e6f6fa54d0ebdea /pkg/integration/tests/stash
parentbe30cbb37509f09c53265aa39d89cac1f6cd65c2 (diff)
better namespacing for assertions
Diffstat (limited to 'pkg/integration/tests/stash')
-rw-r--r--pkg/integration/tests/stash/stash.go8
-rw-r--r--pkg/integration/tests/stash/stash_including_untracked_files.go8
2 files changed, 8 insertions, 8 deletions
diff --git a/pkg/integration/tests/stash/stash.go b/pkg/integration/tests/stash/stash.go
index 8f1281bc3..e506b150a 100644
--- a/pkg/integration/tests/stash/stash.go
+++ b/pkg/integration/tests/stash/stash.go
@@ -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)
},
})
diff --git a/pkg/integration/tests/stash/stash_including_untracked_files.go b/pkg/integration/tests/stash/stash_including_untracked_files.go
index 51cdbbc25..673bb1c04 100644
--- a/pkg/integration/tests/stash/stash_including_untracked_files.go
+++ b/pkg/integration/tests/stash/stash_including_untracked_files.go
@@ -17,8 +17,8 @@ var StashIncludingUntrackedFiles = NewIntegrationTest(NewIntegrationTestArgs{
shell.GitAdd("file_1")
},
Run: func(shell *Shell, input *Input, assert *Assert, keys config.KeybindingConfig) {
- assert.StashCount(0)
- assert.WorkingTreeFileCount(2)
+ assert.Model().StashCount(0)
+ assert.Model().WorkingTreeFileCount(2)
input.Press(keys.Files.ViewStashOptions)
@@ -26,7 +26,7 @@ var StashIncludingUntrackedFiles = 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)
},
})