@@ -45,8 +45,8 @@ func TestNewValidator(t *testing.T) {
|
|||||||
{
|
{
|
||||||
name: "Only images",
|
name: "Only images",
|
||||||
categories: []string{CategoryImage},
|
categories: []string{CategoryImage},
|
||||||
expectedMimes: []string{"image/jpeg", "image/png", "image/gif"},
|
expectedMimes: []string{"image/jpeg", "image/png"},
|
||||||
expectedExts: []string{".jpg", ".png", ".gif"},
|
expectedExts: []string{".jpg", ".png"},
|
||||||
unexpectedMime: "application/pdf",
|
unexpectedMime: "application/pdf",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user