diff options
author | xuri <xuri.me@gmail.com> | 2022-11-02 08:42:00 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-11-02 08:45:06 +0800 |
commit | db2d084ada1a08a48967506b2f1852062168deec (patch) | |
tree | 18334eb7de2deb65c822a51e1e435084831c8876 /excelize_test.go | |
parent | a410b22bdd50e9f212b0b454e5aed798e3476394 (diff) |
This closes #1204, breaking changes for add comments
- Allowing insert SVG format images
- Unit tests updated
Diffstat (limited to 'excelize_test.go')
-rw-r--r-- | excelize_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
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"))) }) } |