@@ -111,8 +111,8 @@ describe('<Truncate />', () => {
111111 }
112112 } ) ;
113113
114- // Mock out a box that's 14 characters wide
115- const numCharacters = 14 ;
114+ // Mock out a box that's 16 characters wide
115+ const numCharacters = 16 ;
116116 const width = numCharacters * characterWidth ;
117117
118118 describe ( `with a box of ${ width } px mocked out` , ( ) => {
@@ -160,7 +160,7 @@ describe('<Truncate />', () => {
160160
161161 expect ( component , 'to display text' , `
162162 This text should
163- stop after here …
163+ stop after here…
164164 ` ) ;
165165 } ) ;
166166
@@ -249,7 +249,7 @@ describe('<Truncate />', () => {
249249
250250 expect ( component , 'to display text' , `
251251 I'm curious what
252- the… read more
252+ the n … read more
253253 ` ) ;
254254 } ) ;
255255
@@ -259,27 +259,27 @@ describe('<Truncate />', () => {
259259 const component = render (
260260 < div >
261261 < Truncate lines = { 1 } >
262- Some old content
262+ Some old content here
263263 </ Truncate >
264264 </ div > ,
265265 container
266266 ) ;
267267
268268 expect ( component , 'to display text' , `
269- Some old conte …
269+ Some old conten …
270270 ` ) ;
271271
272272 render (
273273 < div >
274274 < Truncate lines = { 1 } >
275- Some new content
275+ Some new content here
276276 </ Truncate >
277277 </ div > ,
278278 container
279279 ) ;
280280
281281 expect ( component , 'to display text' , `
282- Some new cont …
282+ Some new conten …
283283 ` ) ;
284284 } ) ;
285285
@@ -319,8 +319,9 @@ describe('<Truncate />', () => {
319319
320320 renderIntoBox (
321321 < Truncate onTruncate = { handleTruncate } >
322- This is some text
323- that got truncated
322+ Some text over
323+ here that got
324+ truncated
324325 </ Truncate >
325326 ) ;
326327
@@ -333,8 +334,8 @@ describe('<Truncate />', () => {
333334
334335 renderIntoBox (
335336 < Truncate lines = { false } onTruncate = { handleTruncate } >
336- This is some text
337- that did not get
337+ Some text over
338+ here that is not
338339 truncated
339340 </ Truncate >
340341 ) ;
@@ -347,8 +348,8 @@ describe('<Truncate />', () => {
347348
348349 renderIntoBox (
349350 < Truncate lines = { 3 } onTruncate = { handleTruncate } >
350- This is some text
351- that did not get
351+ Some text over
352+ here that is not
352353 truncated
353354 </ Truncate >
354355 ) ;
0 commit comments