@@ -87,15 +87,15 @@ suite('QuickFixAddon', () => {
87
87
} ) ;
88
88
suite ( 'returns undefined when' , ( ) => {
89
89
test ( 'expected unix exit code' , async ( ) => {
90
- assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitSimilarOutputRegex , exitCode ) , expectedMap , openerService ) ) ?. fixes , actions ) ;
90
+ assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitSimilarOutputRegex , exitCode ) , expectedMap , openerService ) ) , actions ) ;
91
91
} ) ;
92
92
test ( 'matching exit status' , async ( ) => {
93
- assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitSimilarOutputRegex , 2 ) , expectedMap , openerService ) ) ?. fixes , actions ) ;
93
+ assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitSimilarOutputRegex , 2 ) , expectedMap , openerService ) ) , actions ) ;
94
94
} ) ;
95
95
} ) ;
96
96
suite ( 'returns match' , ( ) => {
97
97
test ( 'returns match' , async ( ) => {
98
- assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitSimilarOutputRegex ) , expectedMap , openerService ) ) ?. fixes , actions ) ;
98
+ assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitSimilarOutputRegex ) , expectedMap , openerService ) ) , actions ) ;
99
99
} ) ;
100
100
101
101
test ( 'returns multiple match' , async ( ) => {
@@ -117,14 +117,14 @@ suite('QuickFixAddon', () => {
117
117
tooltip : 'Run: git push' ,
118
118
command : 'git push'
119
119
} ] ;
120
- assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( 'git pu' , output , GitSimilarOutputRegex ) , expectedMap , openerService ) ) ?. fixes , actions ) ;
120
+ assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( 'git pu' , output , GitSimilarOutputRegex ) , expectedMap , openerService ) ) , actions ) ;
121
121
} ) ;
122
122
test ( 'passes any arguments through' , async ( ) => {
123
123
output = `git: 'checkoutt' is not a git command. See 'git --help'.
124
124
125
125
The most similar commands are
126
126
checkout` ;
127
- assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( 'git checkoutt .' , output , GitSimilarOutputRegex ) , expectedMap , openerService ) ) ?. fixes , [ {
127
+ assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( 'git checkoutt .' , output , GitSimilarOutputRegex ) , expectedMap , openerService ) ) , [ {
128
128
id : 'Git Similar' ,
129
129
enabled : true ,
130
130
label : 'Run: git checkout .' ,
@@ -161,10 +161,10 @@ suite('QuickFixAddon', () => {
161
161
} ) ;
162
162
suite ( 'returns undefined when' , ( ) => {
163
163
test ( 'expected unix exit code' , async ( ) => {
164
- assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitTwoDashesRegex , exitCode ) , expectedMap , openerService ) ) ?. fixes , actions ) ;
164
+ assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitTwoDashesRegex , exitCode ) , expectedMap , openerService ) ) , actions ) ;
165
165
} ) ;
166
166
test ( 'matching exit status' , async ( ) => {
167
- assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitTwoDashesRegex , 2 ) , expectedMap , openerService ) ) ?. fixes , actions ) ;
167
+ assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitTwoDashesRegex , 2 ) , expectedMap , openerService ) ) , actions ) ;
168
168
} ) ;
169
169
} ) ;
170
170
} ) ;
@@ -187,7 +187,7 @@ suite('QuickFixAddon', () => {
187
187
error Command failed with exit code 1.
188
188
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.` ;
189
189
const actionOptions = [ {
190
- id : 'terminal.freePort ' ,
190
+ id : 'Free Port ' ,
191
191
label : 'Free port 3000' ,
192
192
run : true ,
193
193
tooltip : 'Free port 3000' ,
@@ -200,11 +200,11 @@ suite('QuickFixAddon', () => {
200
200
} ) ;
201
201
suite ( 'returns undefined when' , ( ) => {
202
202
test ( 'output does not match' , async ( ) => {
203
- strictEqual ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( portCommand , `invalid output` , FreePortOutputRegex ) , expectedMap , openerService ) ) ?. fixes , undefined ) ;
203
+ strictEqual ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( portCommand , `invalid output` , FreePortOutputRegex ) , expectedMap , openerService ) ) , undefined ) ;
204
204
} ) ;
205
205
} ) ;
206
206
test ( 'returns actions' , async ( ) => {
207
- assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( portCommand , output , FreePortOutputRegex ) , expectedMap , openerService ) ) ?. fixes , actionOptions ) ;
207
+ assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( portCommand , output , FreePortOutputRegex ) , expectedMap , openerService ) ) , actionOptions ) ;
208
208
} ) ;
209
209
} ) ;
210
210
}
@@ -239,10 +239,10 @@ suite('QuickFixAddon', () => {
239
239
} ) ;
240
240
suite ( 'returns actions when' , ( ) => {
241
241
test ( 'expected unix exit code' , async ( ) => {
242
- assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitPushOutputRegex , exitCode ) , expectedMap , openerService ) ) ?. fixes , actions ) ;
242
+ assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitPushOutputRegex , exitCode ) , expectedMap , openerService ) ) , actions ) ;
243
243
} ) ;
244
244
test ( 'matching exit status' , async ( ) => {
245
- assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitPushOutputRegex , 2 ) , expectedMap , openerService ) ) ?. fixes , actions ) ;
245
+ assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitPushOutputRegex , 2 ) , expectedMap , openerService ) ) , actions ) ;
246
246
} ) ;
247
247
} ) ;
248
248
} ) ;
@@ -283,7 +283,7 @@ suite('QuickFixAddon', () => {
283
283
} ) ;
284
284
suite ( 'returns actions when' , ( ) => {
285
285
test ( 'expected unix exit code' , async ( ) => {
286
- assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitCreatePrOutputRegex , exitCode ) , expectedMap , openerService ) ) ?. fixes , actions ) ;
286
+ assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitCreatePrOutputRegex , exitCode ) , expectedMap , openerService ) ) , actions ) ;
287
287
} ) ;
288
288
} ) ;
289
289
} ) ;
@@ -319,10 +319,10 @@ suite('QuickFixAddon', () => {
319
319
} ) ;
320
320
suite ( 'returns actions when' , ( ) => {
321
321
test ( 'expected unix exit code' , async ( ) => {
322
- assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitPushOutputRegex , exitCode ) , expectedMap , openerService ) ) ?. fixes , actions ) ;
322
+ assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitPushOutputRegex , exitCode ) , expectedMap , openerService ) ) , actions ) ;
323
323
} ) ;
324
324
test ( 'matching exit status' , async ( ) => {
325
- assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitPushOutputRegex , 2 ) , expectedMap , openerService ) ) ?. fixes , actions ) ;
325
+ assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitPushOutputRegex , 2 ) , expectedMap , openerService ) ) , actions ) ;
326
326
} ) ;
327
327
} ) ;
328
328
} ) ;
0 commit comments