File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
packages/cursorless-org-docs/src/docs/components Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -81,15 +81,15 @@ const tests: Test[] = [
8181
8282suite ( "flatten highlights" , ( ) => {
8383 tests . forEach ( ( t ) => {
84- const highlights = t . scopes . flatMap ( ( s ) => {
85- const result : Highlight [ ] = [ ] ;
86- if ( s . domain ) {
87- result . push ( createHighlight ( s . domain ) ) ;
88- }
89- result . push ( ...s . targets . map ( ( t ) => createHighlight ( t . content ) ) ) ;
90- return result ;
91- } ) ;
9284 test ( t . name , ( ) => {
85+ const highlights = t . scopes . flatMap ( ( s ) => {
86+ const result : Highlight [ ] = [ ] ;
87+ if ( s . domain ) {
88+ result . push ( createHighlight ( s . domain ) ) ;
89+ }
90+ result . push ( ...s . targets . map ( ( t ) => createHighlight ( t . content ) ) ) ;
91+ return result ;
92+ } ) ;
9393 const actual = flattenHighlights ( highlights ) ;
9494 assert . equal ( actual . length , t . expected . length ) ;
9595 for ( let i = 0 ; i < actual . length ; i ++ ) {
You can’t perform that action at this time.
0 commit comments