Skip to content

Commit

Permalink
Fix a write_test case to embed a jpeg file
Browse files Browse the repository at this point in the history
  • Loading branch information
tagatac committed Nov 18, 2024
1 parent 3c6af3e commit 81d5161
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/bagoup/write_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ func TestWriteFile(t *testing.T) {
ofMock.EXPECT().WriteAttachment("attachment1.heic"),
osMock.EXPECT().FileExist("attachment2.jpeg").Return(true, nil),
osMock.EXPECT().HEIC2JPG("attachment2.jpeg").Return("attachment2.jpeg", nil),
ofMock.EXPECT().WriteAttachment("attachment2.jpeg"),
ofMock.EXPECT().WriteAttachment("attachment2.jpeg").Return(true, nil),
ofMock.EXPECT().Name().Return("messages-export/friend/iMessage;-;friend@gmail.com;;;iMessage;-;friend@hotmail.com.pdf"),
ofMock.EXPECT().ReferenceAttachment("att3transfer.png"),
ofMock.EXPECT().Stage(),
Expand All @@ -521,6 +521,7 @@ func TestWriteFile(t *testing.T) {
)
},
wantJPGs: 1,
wantEmbedded: 1,
wantConvFail: 1,
},
{
Expand Down

0 comments on commit 81d5161

Please sign in to comment.