File tree 1 file changed +17
-14
lines changed
arduino-ide-extension/src/test/browser
1 file changed +17
-14
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,23 @@ describe('debug', () => {
116
116
) ;
117
117
} ) ;
118
118
119
+ it ( 'should resolve when no programmer is selected (arduino/arduino-cli#2540)' , async ( ) => {
120
+ const copyData : Mutable < BoardsDataStore . Data > = deepClone ( data ) ;
121
+ delete copyData . selectedProgrammer ;
122
+ await doesNotReject (
123
+ isDebugEnabled (
124
+ board ,
125
+ ( ) => boardDetails ,
126
+ ( ) => copyData ,
127
+ ( fqbn ) => fqbn ,
128
+ async ( params ) => {
129
+ expect ( params . programmer ) . to . be . undefined ;
130
+ return params . fqbn ;
131
+ }
132
+ )
133
+ ) ;
134
+ } ) ;
135
+
119
136
it ( 'should error when it fails to get the debug info from the CLI' , async ( ) => {
120
137
await rejects (
121
138
isDebugEnabled (
@@ -133,20 +150,6 @@ describe('debug', () => {
133
150
) ;
134
151
} ) ;
135
152
136
- it ( 'should resolve when no programmer is selected (arduino/arduino-cli#2540)' , async ( ) => {
137
- const copyData : Mutable < BoardsDataStore . Data > = deepClone ( data ) ;
138
- delete copyData . selectedProgrammer ;
139
- await doesNotReject (
140
- isDebugEnabled (
141
- board ,
142
- ( ) => boardDetails ,
143
- ( ) => copyData ,
144
- ( fqbn ) => fqbn ,
145
- async ( ) => fqbn
146
- )
147
- ) ;
148
- } ) ;
149
-
150
153
it ( 'should resolve when debugging is supported' , async ( ) => {
151
154
await doesNotReject (
152
155
isDebugEnabled (
You can’t perform that action at this time.
0 commit comments