Allow more permissive bracket validations
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
@@ -192,16 +192,6 @@ func TestDocument_Create_Validation(t *testing.T) {
|
||||
},
|
||||
wantErrorContains: "HTML",
|
||||
},
|
||||
{
|
||||
name: "title with angle brackets",
|
||||
input: map[string]any{
|
||||
"title": "Test < Document",
|
||||
"content": "Test content",
|
||||
"documentType": "POLICY",
|
||||
"classification": "INTERNAL",
|
||||
},
|
||||
wantErrorContains: "angle brackets",
|
||||
},
|
||||
{
|
||||
name: "title with newline",
|
||||
input: map[string]any{
|
||||
@@ -418,14 +408,6 @@ func TestDocument_Update_Validation(t *testing.T) {
|
||||
},
|
||||
wantErrorContains: "HTML",
|
||||
},
|
||||
{
|
||||
name: "title with angle brackets",
|
||||
setup: func() string { return baseDocumentID },
|
||||
input: func(id string) map[string]any {
|
||||
return map[string]any{"id": id, "title": "Test < Document"}
|
||||
},
|
||||
wantErrorContains: "angle brackets",
|
||||
},
|
||||
{
|
||||
name: "title with newline",
|
||||
setup: func() string { return baseDocumentID },
|
||||
|
||||
Reference in New Issue
Block a user