Skip to content
Snippets Groups Projects
Unverified Commit 151613f0 authored by Cal Herries's avatar Cal Herries Committed by GitHub
Browse files

Fix format-personal-collection-name-length-test (#37783)

parent ffcfaecc
No related branches found
No related tags found
No related merge requests found
......@@ -39,8 +39,8 @@
(deftest format-personal-collection-name-length-test
(testing "test that an unrealistically long collection name with unicode letters is still less than the max length for a slug (metabase#33917)"
(mt/with-temporary-setting-values [site-locale "ru"]
(is (< (count (#'collection/slugify (collection/format-personal-collection-name (repeat 20 "\u0411") ; Cyrillic "b" character
(repeat 20 "\u0411")
(is (< (count (#'collection/slugify (collection/format-personal-collection-name (apply str (repeat 34 "Б"))
(apply str (repeat 35 "))
"MetaBase@metabase.com"
:site)))
(var-get #'collection/collection-slug-max-length))))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment