From 09e80e5f2a56e5d13262e6d01c68cb4054bad6f4 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Tue, 27 Dec 2022 15:22:31 +1100 Subject: better namespacing for assertions --- pkg/integration/tests/stash/stash.go | 8 ++++---- pkg/integration/tests/stash/stash_including_untracked_files.go | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'pkg/integration/tests/stash') 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) }, }) -- cgit v1.2.3