summaryrefslogtreecommitdiff
path: root/js_tests/admin
diff options
context:
space:
mode:
Diffstat (limited to 'js_tests/admin')
-rw-r--r--js_tests/admin/URLify.test.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js_tests/admin/URLify.test.js b/js_tests/admin/URLify.test.js
index fafa9af113..cc738bc4ad 100644
--- a/js_tests/admin/URLify.test.js
+++ b/js_tests/admin/URLify.test.js
@@ -23,3 +23,8 @@ QUnit.test('merge adjacent whitespace', function(assert) {
QUnit.test('trim trailing hyphens', function(assert) {
assert.strictEqual(URLify('D silent always', 9, true), 'd-silent');
});
+
+QUnit.test('do not remove English words if the string contains non-ASCII', function(assert) {
+ // If removing English words wasn't skipped, the last 'a' would be removed.
+ assert.strictEqual(URLify('Kaupa-miða', 255, true), 'kaupa-miða');
+});