summaryrefslogtreecommitdiff
path: root/datavalidation_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 /datavalidation_test.go
parentf8667386dcde788d8232b652ac85a138c0d20bf3 (diff)
This closes #1330 update non existing sheet error messages (#1331)
Diffstat (limited to 'datavalidation_test.go')
-rw-r--r--datavalidation_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/datavalidation_test.go b/datavalidation_test.go
index 88625d1..c0d9117 100644
--- a/datavalidation_test.go
+++ b/datavalidation_test.go
@@ -90,7 +90,7 @@ func TestDataValidation(t *testing.T) {
// Test get data validation on no exists worksheet
_, err = f.GetDataValidations("SheetN")
- assert.EqualError(t, err, "sheet SheetN is not exist")
+ assert.EqualError(t, err, "sheet SheetN does not exist")
assert.NoError(t, f.SaveAs(resultFile))
@@ -158,7 +158,7 @@ func TestDataValidationError(t *testing.T) {
// Test add data validation on no exists worksheet.
f = NewFile()
- assert.EqualError(t, f.AddDataValidation("SheetN", nil), "sheet SheetN is not exist")
+ assert.EqualError(t, f.AddDataValidation("SheetN", nil), "sheet SheetN does not exist")
}
func TestDeleteDataValidation(t *testing.T) {
@@ -201,7 +201,7 @@ func TestDeleteDataValidation(t *testing.T) {
assert.EqualError(t, f.DeleteDataValidation("Sheet1", "A1:B2"), newCellNameToCoordinatesError("A", newInvalidCellNameError("A")).Error())
// Test delete data validation on no exists worksheet.
- assert.EqualError(t, f.DeleteDataValidation("SheetN", "A1:B2"), "sheet SheetN is not exist")
+ assert.EqualError(t, f.DeleteDataValidation("SheetN", "A1:B2"), "sheet SheetN does not exist")
// Test delete all data validations in the worksheet.
assert.NoError(t, f.DeleteDataValidation("Sheet1"))