From db2d084ada1a08a48967506b2f1852062168deec Mon Sep 17 00:00:00 2001 From: xuri Date: Wed, 2 Nov 2022 08:42:00 +0800 Subject: This closes #1204, breaking changes for add comments - Allowing insert SVG format images - Unit tests updated --- excelize_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'excelize_test.go') diff --git a/excelize_test.go b/excelize_test.go index 4c86d56..74895f5 100644 --- a/excelize_test.go +++ b/excelize_test.go @@ -946,8 +946,7 @@ func TestSetDeleteSheet(t *testing.T) { t.FailNow() } f.DeleteSheet("Sheet1") - assert.EqualError(t, f.AddComment("Sheet1", "A1", ""), "unexpected end of JSON input") - assert.NoError(t, f.AddComment("Sheet1", "A1", `{"author":"Excelize: ","text":"This is a comment."}`)) + assert.NoError(t, f.AddComment("Sheet1", Comment{Cell: "A1", Author: "Excelize", Runs: []RichTextRun{{Text: "Excelize: ", Font: &Font{Bold: true}}, {Text: "This is a comment."}}})) assert.NoError(t, f.SaveAs(filepath.Join("test", "TestSetDeleteSheet.TestBook4.xlsx"))) }) } -- cgit v1.2.1