diff options
| author | monotonee <monotonee@tuta.io> | 2017-06-13 14:41:21 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-06-13 14:58:30 -0400 |
| commit | 7c4f05fae2ae12d698dc28421f5d4659162f928a (patch) | |
| tree | 0f1add9442c069e83605298b990219f5121d7c4f /js_tests | |
| parent | 68812ba868d7baba5be267a69fd75ce7d8997985 (diff) | |
Fixed #28295 -- Made admin's URLify.js trim trailing hyphens.
Diffstat (limited to 'js_tests')
| -rw-r--r-- | js_tests/admin/URLify.test.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js_tests/admin/URLify.test.js b/js_tests/admin/URLify.test.js index b1d7d1f301..fafa9af113 100644 --- a/js_tests/admin/URLify.test.js +++ b/js_tests/admin/URLify.test.js @@ -19,3 +19,7 @@ QUnit.test('strip non-URL characters', function(assert) { QUnit.test('merge adjacent whitespace', function(assert) { assert.strictEqual(URLify('D silent', 8, true), 'd-silent'); }); + +QUnit.test('trim trailing hyphens', function(assert) { + assert.strictEqual(URLify('D silent always', 9, true), 'd-silent'); +}); |
