summaryrefslogtreecommitdiff
path: root/comment_test.go
diff options
context:
space:
mode:
authordavidborry <davidborryfr@gmail.com>2022-08-27 09:16:41 -0700
committerGitHub <noreply@github.com>2022-08-28 00:16:41 +0800
commitbef49e40eec508a6413e80ee5df7df52f7827424 (patch)
treed71fcc5d3abef6f8943e3fc2f75fe9dd796d94fd /comment_test.go
parentf8667386dcde788d8232b652ac85a138c0d20bf3 (diff)
This closes #1330 update non existing sheet error messages (#1331)
Diffstat (limited to 'comment_test.go')
-rw-r--r--comment_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/comment_test.go b/comment_test.go
index c2d9fe2..64e9968 100644
--- a/comment_test.go
+++ b/comment_test.go
@@ -31,7 +31,7 @@ func TestAddComments(t *testing.T) {
assert.NoError(t, f.AddComment("Sheet2", "B7", `{"author":"Excelize: ","text":"This is a comment."}`))
// Test add comment on not exists worksheet.
- assert.EqualError(t, f.AddComment("SheetN", "B7", `{"author":"Excelize: ","text":"This is a comment."}`), "sheet SheetN is not exist")
+ assert.EqualError(t, f.AddComment("SheetN", "B7", `{"author":"Excelize: ","text":"This is a comment."}`), "sheet SheetN does not exist")
// Test add comment on with illegal cell coordinates
assert.EqualError(t, f.AddComment("Sheet1", "A", `{"author":"Excelize: ","text":"This is a comment."}`), newCellNameToCoordinatesError("A", newInvalidCellNameError("A")).Error())
if assert.NoError(t, f.SaveAs(filepath.Join("test", "TestAddComments.xlsx"))) {
@@ -66,7 +66,7 @@ func TestDeleteComment(t *testing.T) {
assert.NoError(t, f.DeleteComment("Sheet2", "C41"))
assert.EqualValues(t, 0, len(f.GetComments()["Sheet2"]))
// Test delete comment on not exists worksheet
- assert.EqualError(t, f.DeleteComment("SheetN", "A1"), "sheet SheetN is not exist")
+ assert.EqualError(t, f.DeleteComment("SheetN", "A1"), "sheet SheetN does not exist")
// Test delete comment with worksheet part
f.Pkg.Delete("xl/worksheets/sheet1.xml")
assert.NoError(t, f.DeleteComment("Sheet1", "A22"))