File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -6,23 +6,27 @@ describe('GherkinLine', () => {
66 function getCellsText ( line : string ) {
77 const gl = new GherkinLine ( line , 1 )
88
9- return gl . getTableCells ( ) . map ( span => span . text )
9+ return gl . getTableCells ( ) . map ( ( span ) => span . text )
1010 }
1111
1212 it ( 'trims white spaces before cell content' , ( ) => {
13- assert . deepEqual ( getCellsText ( " | \t spaces before|" ) , [ 'spaces before' ] )
13+ assert . deepEqual ( getCellsText ( ' | \t spaces before|' ) , [ 'spaces before' ] )
1414 } )
1515
1616 it ( 'trims white spaces after cell content' , ( ) => {
17- assert . deepEqual ( getCellsText ( " |spaces after |" ) , [ 'spaces after' ] )
17+ assert . deepEqual ( getCellsText ( ' |spaces after |' ) , [ 'spaces after' ] )
1818 } )
1919
2020 it ( 'trims white spaces around cell content' , ( ) => {
21- assert . deepEqual ( getCellsText ( "| \t spaces everywhere \t|" ) , [ 'spaces everywhere' ] )
21+ assert . deepEqual ( getCellsText ( '| \t spaces everywhere \t|' ) , [
22+ 'spaces everywhere' ,
23+ ] )
2224 } )
2325
2426 it ( 'does not delete white spaces inside a cell' , ( ) => {
25- assert . deepEqual ( getCellsText ( "| foo()\n bar\nbaz |" ) , [ 'foo()\n bar\nbaz' ] )
27+ assert . deepEqual ( getCellsText ( '| foo()\n bar\nbaz |' ) , [
28+ 'foo()\n bar\nbaz' ,
29+ ] )
2630 } )
27- } ) ;
28- } )
31+ } )
32+ } )
You can’t perform that action at this time.
0 commit comments