@@ -89,7 +89,7 @@ describe("filterTree", () => {
89
89
// answers are os dependant because of slight differences
90
90
// console.log(filterTree(outlineData, "text", "plainText", "children"))
91
91
it ( "can search in outline data" , ( ) => {
92
- process . platform === "win32" &&
92
+ if ( process . platform === "win32" ) {
93
93
expect (
94
94
DeepEqual ( filterTree ( outlineData , "text" , "plainText" , "children" ) , [
95
95
{ data : "text" , index : 0 , level : 4 } ,
@@ -189,9 +189,10 @@ describe("filterTree", () => {
189
189
{ data : "updateMaxScreenLineLength" , index : 29 , level : 2 } ,
190
190
] )
191
191
) . toBe ( true )
192
+ }
192
193
193
194
// console.log(filterTree(outlineData, "disp", "plainText", "children"))
194
- process . platform !== "linux" &&
195
+ if ( process . platform !== "linux" ) {
195
196
expect (
196
197
DeepEqual ( filterTree ( outlineData , "disp" , "plainText" , "children" ) , [
197
198
{ data : "disposable" , index : 3 , level : 4 } ,
@@ -218,9 +219,10 @@ describe("filterTree", () => {
218
219
{ data : "onDidChangeCursorPosition" , index : 58 , level : 2 } ,
219
220
] )
220
221
) . toBe ( true )
222
+ }
221
223
222
224
// console.log(filterTree(outlineData, "dips", "plainText", "children"))
223
- process . platform !== "linux" &&
225
+ if ( process . platform !== "linux" ) {
224
226
expect (
225
227
DeepEqual ( filterTree ( outlineData , "dips" , "plainText" , "children" ) , [
226
228
{ data : "didUpdateStyles" , index : 2 , level : 3 } ,
@@ -257,5 +259,6 @@ describe("filterTree", () => {
257
259
{ data : "destroyFoldsContainingBufferPositions" , index : 373 , level : 2 } ,
258
260
] )
259
261
) . toBe ( true )
262
+ }
260
263
} )
261
264
} )
0 commit comments