mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-09 07:47:27 +02:00
fixed arg validation
This commit is contained in:
1 parent
84c2c558da
commit
a6deb6ab90
2 files changed
+11
-1
No files matched your search
@@ -28,6 +28,16 @@ func TestNewExcerptModifier(t *testing.T) {
|
||||
[]string{"something"}, // should fallback to 0 which is not allowed
|
||||
true,
|
||||
},
|
||||
{
|
||||
"negative numeric max argument",
|
||||
[]string{"-1"},
|
||||
true,
|
||||
},
|
||||
{
|
||||
"zero numeric max argument",
|
||||
[]string{"0"},
|
||||
true,
|
||||
},
|
||||
{
|
||||
"numeric max argument",
|
||||
[]string{"12"},
|
||||
|
||||
Reference in new issue
Block a user