mirror of
https://github.com/discourse/discourse.git
synced 2025-06-19 21:27:44 +08:00
DEV: Remove unused BreakString class (#8942)
This commit is contained in:
@ -4,7 +4,6 @@ import {
|
||||
relativeAge,
|
||||
autoUpdatingRelativeAge,
|
||||
updateRelativeAge,
|
||||
breakUp,
|
||||
number,
|
||||
longDate,
|
||||
durationTiny
|
||||
@ -211,23 +210,6 @@ QUnit.test("updateRelativeAge", assert => {
|
||||
assert.equal($elem.html(), "2 mins ago");
|
||||
});
|
||||
|
||||
QUnit.test("breakUp", assert => {
|
||||
var b = function(s, hint) {
|
||||
return breakUp(s, hint);
|
||||
};
|
||||
|
||||
assert.equal(b("hello"), "hello");
|
||||
assert.equal(b("helloworld"), "helloworld");
|
||||
assert.equal(b("HeMans11"), "He<wbr>​Mans<wbr>​11");
|
||||
assert.equal(b("he_man"), "he_<wbr>​man");
|
||||
assert.equal(b("he11111"), "he<wbr>​11111");
|
||||
assert.equal(b("HRCBob"), "HRC<wbr>​Bob");
|
||||
assert.equal(
|
||||
b("bobmarleytoo", "Bob Marley Too"),
|
||||
"bob<wbr>​marley<wbr>​too"
|
||||
);
|
||||
});
|
||||
|
||||
QUnit.test("number", assert => {
|
||||
assert.equal(number(123), "123", "it returns a string version of the number");
|
||||
assert.equal(number("123"), "123", "it works with a string command");
|
||||
|
Reference in New Issue
Block a user