diff options
Diffstat (limited to 'internal/conf/mocks.go')
-rw-r--r-- | internal/conf/mocks.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/conf/mocks.go b/internal/conf/mocks.go index af5b1bd7..2c10c1ce 100644 --- a/internal/conf/mocks.go +++ b/internal/conf/mocks.go @@ -55,3 +55,11 @@ func SetMockUI(t *testing.T, opts UIOpts) { UI = before }) } + +func SetMockPicture(t *testing.T, opts PictureOpts) { + before := Picture + Picture = opts + t.Cleanup(func() { + Picture = before + }) +} |