it('shortens strings longer than given length', function () {
    expect(tpl({str: 'foo bar bar', len: 5})).to.equal('foo b…');
  });