Fix broken StringUtils.test.ts

This commit is contained in:
Jerko Steiner 2019-04-11 13:42:19 +08:00
parent 0fb6c8a6c2
commit 90d1e1a040

View File

@ -13,7 +13,7 @@ describe('StringUtils', () => {
for (let i = 0; i < 300; i++) {
c += 'a'
}
expect(StringUtils.ellipsis(c)).toBe(c.substring(0, 252))
expect(StringUtils.ellipsis(c)).toBe(c.substring(0, 252) + '...')
})
it('does nothing when text is not too long', () => {