diff options
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"))) }) } |