diff options
author | xuri <xuri.me@gmail.com> | 2021-05-10 00:09:24 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2021-05-10 00:09:24 +0800 |
commit | be12cc27f1d774154b17763c071e1dc6f91eab8c (patch) | |
tree | d6544c2e33e8aacfb0867e79ffc69fde435d3183 /picture_test.go | |
parent | 423bc26d1f87db55bab5704afebf4509269bbc7e (diff) |
This closes #652, new SetColWidth API, support set column width in stream writing mode, and export error message
Diffstat (limited to 'picture_test.go')
-rw-r--r-- | picture_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
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)) |