Add test validating that UTF is allowed in display names

This commit is contained in:
Benedikt Kulmann
2020-06-04 11:49:02 +02:00
parent 6e2fe244ca
commit 7907ae6708

View File

@@ -83,7 +83,7 @@ func TestSettingsBundleProperties(t *testing.T) {
CustomError{},
},
{
"UTF",
"UTF disallowed on keys",
"सिम्प्ले-bundle-key",
"सिम्प्ले-key",
"सिम्प्ले-display-name",
@@ -96,6 +96,15 @@ func TestSettingsBundleProperties(t *testing.T) {
Status: "Internal Server Error",
},
},
{
"UTF allowed on display name",
"simple-bundle-key",
"simple-key",
"सिम्प्ले-display-name",
"simple-extension-name",
"123e4567-e89b-12d3-a456-426652340000",
CustomError{},
},
{
"bundle key with ../ in the name",
"../file-a-level-higher-up",