/* global BreakString:true */ QUnit.module("lib:breakString", {}); QUnit.test("breakString", (assert) => { var b = function (s, hint) { return new BreakString(s).break(hint); }; assert.equal(b("hello"), "hello"); assert.equal(b("helloworld"), "helloworld"); assert.equal(b("HeMans11"), "He​Mans​11"); assert.equal(b("he_man"), "he_​man"); assert.equal(b("he11111"), "he​11111"); assert.equal(b("HRCBob"), "HRC​Bob"); assert.equal( b("bobmarleytoo", "Bob Marley Too"), "bob​marley​too" ); });