From be12cc27f1d774154b17763c071e1dc6f91eab8c Mon Sep 17 00:00:00 2001 From: xuri Date: Mon, 10 May 2021 00:09:24 +0800 Subject: This closes #652, new SetColWidth API, support set column width in stream writing mode, and export error message --- picture_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'picture_test.go') diff --git a/picture_test.go b/picture_test.go index 28d8aa8..be917b8 100644 --- a/picture_test.go +++ b/picture_test.go @@ -82,10 +82,10 @@ func TestAddPictureErrors(t *testing.T) { // Test add picture to worksheet with unsupported file type. err = xlsx.AddPicture("Sheet1", "G21", filepath.Join("test", "Book1.xlsx"), "") - assert.EqualError(t, err, "unsupported image extension") + assert.EqualError(t, err, ErrImgExt.Error()) err = xlsx.AddPictureFromBytes("Sheet1", "G21", "", "Excel Logo", "jpg", make([]byte, 1)) - assert.EqualError(t, err, "unsupported image extension") + assert.EqualError(t, err, ErrImgExt.Error()) // Test add picture to worksheet with invalid file data. err = xlsx.AddPictureFromBytes("Sheet1", "G21", "", "Excel Logo", ".jpg", make([]byte, 1)) -- cgit v1.2.1