File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/s2-core/__tests__/unit/utils Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -73,16 +73,16 @@ describe('Text Utils Tests', () => {
7373
7474 test ( 'should get correct text width' , ( ) => {
7575 const width = measureTextWidth ( 'test' , font ) ;
76- expect ( Math . floor ( width ) ) . toEqual ( 21 ) ;
76+ expect ( Math . floor ( width ) ) . toEqual ( 16 ) ;
7777 } ) ;
7878
7979 test ( 'should get correct text width roughly' , ( ) => {
8080 const width = measureTextWidth ( 'test' , font ) ;
81- expect ( Math . floor ( width ) ) . toEqual ( 21 ) ;
81+ expect ( Math . floor ( width ) ) . toEqual ( 16 ) ;
8282 } ) ;
8383
8484 test ( 'should get correct ellipsis text inner' , ( ) => {
85- const text = getEllipsisTextInner ( 'test' , 20 , font ) ;
85+ const text = getEllipsisTextInner ( 'test' , 15 , font ) ;
8686 expect ( text ) . toEqual ( 't...' ) ;
8787 } ) ;
8888
You can’t perform that action at this time.
0 commit comments