From ce25881c880d9711f211be05f92a809304a436e3 Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Sat, 22 Oct 2022 20:01:38 +0800 Subject: refactor(db): move some methods off `user.go` (#7199) --- internal/conf/mocks.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'internal/conf/mocks.go') 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 + }) +} -- cgit v1.2.3