@@ -80,35 +80,47 @@ describe('osc', () => {
8080 expect ( supportsHyperlinks ( ) , 'to be' , false ) ;
8181 } ) ;
8282
83- it ( 'should return false for VTE 0.50.0 (dotted format) due to segfault bug' , ( ) => {
84- delete process . env . CI ;
85- delete process . env . FORCE_HYPERLINK ;
86- delete process . env . TERM_PROGRAM ;
87- process . env . VTE_VERSION = '0.50.0' ;
88-
89- const mockStream = { isTTY : true } as NodeJS . WriteStream ;
90- expect ( supportsHyperlinks ( mockStream ) , 'to be' , false ) ;
91- } ) ;
92-
93- it ( 'should return false for VTE 0.50.0 (compact format "5000") due to segfault bug' , ( ) => {
94- delete process . env . CI ;
95- delete process . env . FORCE_HYPERLINK ;
96- delete process . env . TERM_PROGRAM ;
97- process . env . VTE_VERSION = '5000' ;
98-
99- const mockStream = { isTTY : true } as NodeJS . WriteStream ;
100- expect ( supportsHyperlinks ( mockStream ) , 'to be' , false ) ;
101- } ) ;
83+ it (
84+ 'should return false for VTE 0.50.0 (dotted format) due to segfault bug' ,
85+ { skip : process . platform === 'win32' } ,
86+ ( ) => {
87+ delete process . env . CI ;
88+ delete process . env . FORCE_HYPERLINK ;
89+ delete process . env . TERM_PROGRAM ;
90+ process . env . VTE_VERSION = '0.50.0' ;
91+
92+ const mockStream = { isTTY : true } as NodeJS . WriteStream ;
93+ expect ( supportsHyperlinks ( mockStream ) , 'to be' , false ) ;
94+ } ,
95+ ) ;
10296
103- it ( 'should return true for VTE 0.50.1 (compact format "5001")' , ( ) => {
104- delete process . env . CI ;
105- delete process . env . FORCE_HYPERLINK ;
106- delete process . env . TERM_PROGRAM ;
107- process . env . VTE_VERSION = '5001' ;
97+ it (
98+ 'should return false for VTE 0.50.0 (compact format "5000") due to segfault bug' ,
99+ { skip : process . platform === 'win32' } ,
100+ ( ) => {
101+ delete process . env . CI ;
102+ delete process . env . FORCE_HYPERLINK ;
103+ delete process . env . TERM_PROGRAM ;
104+ process . env . VTE_VERSION = '5000' ;
105+
106+ const mockStream = { isTTY : true } as NodeJS . WriteStream ;
107+ expect ( supportsHyperlinks ( mockStream ) , 'to be' , false ) ;
108+ } ,
109+ ) ;
108110
109- const mockStream = { isTTY : true } as NodeJS . WriteStream ;
110- expect ( supportsHyperlinks ( mockStream ) , 'to be' , true ) ;
111- } ) ;
111+ it (
112+ 'should return true for VTE 0.50.1 (compact format "5001")' ,
113+ { skip : process . platform === 'win32' } ,
114+ ( ) => {
115+ delete process . env . CI ;
116+ delete process . env . FORCE_HYPERLINK ;
117+ delete process . env . TERM_PROGRAM ;
118+ process . env . VTE_VERSION = '5001' ;
119+
120+ const mockStream = { isTTY : true } as NodeJS . WriteStream ;
121+ expect ( supportsHyperlinks ( mockStream ) , 'to be' , true ) ;
122+ } ,
123+ ) ;
112124 } ) ;
113125
114126 describe ( 'linkifyUrls()' , ( ) => {
0 commit comments