@@ -106,7 +106,7 @@ suite('Debugging - Adapter Factory', () => {
106
106
107
107
const descriptor = await factory . createDebugAdapterDescriptor ( session , nodeExecutable ) ;
108
108
109
- assert . deepEqual ( descriptor , debugExecutable ) ;
109
+ assert . deepStrictEqual ( descriptor , debugExecutable ) ;
110
110
} ) ;
111
111
112
112
test ( 'Return the path of the active interpreter as the current python path, it exists and configuration.pythonPath is not defined' , async ( ) => {
@@ -117,7 +117,7 @@ suite('Debugging - Adapter Factory', () => {
117
117
118
118
const descriptor = await factory . createDebugAdapterDescriptor ( session , nodeExecutable ) ;
119
119
120
- assert . deepEqual ( descriptor , debugExecutable ) ;
120
+ assert . deepStrictEqual ( descriptor , debugExecutable ) ;
121
121
} ) ;
122
122
123
123
test ( 'Return the path of the first available interpreter as the current python path, configuration.pythonPath is not defined and there is no active interpreter' , async ( ) => {
@@ -126,7 +126,7 @@ suite('Debugging - Adapter Factory', () => {
126
126
127
127
const descriptor = await factory . createDebugAdapterDescriptor ( session , nodeExecutable ) ;
128
128
129
- assert . deepEqual ( descriptor , debugExecutable ) ;
129
+ assert . deepStrictEqual ( descriptor , debugExecutable ) ;
130
130
} ) ;
131
131
132
132
test ( 'Display a message if no python interpreter is set' , async ( ) => {
@@ -147,7 +147,7 @@ suite('Debugging - Adapter Factory', () => {
147
147
148
148
// Interpreter not needed for host/port
149
149
verify ( interpreterService . getInterpreters ( anything ( ) ) ) . never ( ) ;
150
- assert . deepEqual ( descriptor , debugServer ) ;
150
+ assert . deepStrictEqual ( descriptor , debugServer ) ;
151
151
} ) ;
152
152
153
153
test ( 'Return Debug Adapter server if request is "attach", and connect is specified' , async ( ) => {
@@ -161,7 +161,7 @@ suite('Debugging - Adapter Factory', () => {
161
161
162
162
// Interpreter not needed for connect
163
163
verify ( interpreterService . getInterpreters ( anything ( ) ) ) . never ( ) ;
164
- assert . deepEqual ( descriptor , debugServer ) ;
164
+ assert . deepStrictEqual ( descriptor , debugServer ) ;
165
165
} ) ;
166
166
167
167
test ( 'Return Debug Adapter executable if request is "attach", and listen is specified' , async ( ) => {
@@ -171,7 +171,7 @@ suite('Debugging - Adapter Factory', () => {
171
171
when ( interpreterService . getActiveInterpreter ( anything ( ) ) ) . thenResolve ( interpreter ) ;
172
172
173
173
const descriptor = await factory . createDebugAdapterDescriptor ( session , nodeExecutable ) ;
174
- assert . deepEqual ( descriptor , debugExecutable ) ;
174
+ assert . deepStrictEqual ( descriptor , debugExecutable ) ;
175
175
} ) ;
176
176
177
177
test ( 'Throw error if request is "attach", and neither port, processId, listen, nor connect is specified' , async ( ) => {
@@ -200,7 +200,7 @@ suite('Debugging - Adapter Factory', () => {
200
200
201
201
const descriptor = await factory . createDebugAdapterDescriptor ( session , nodeExecutable ) ;
202
202
203
- assert . deepEqual ( descriptor , debugExecutable ) ;
203
+ assert . deepStrictEqual ( descriptor , debugExecutable ) ;
204
204
} ) ;
205
205
206
206
test ( "Don't pass the --log-dir argument to debug adapter if configuration.logToFile is not set" , async ( ) => {
@@ -209,7 +209,7 @@ suite('Debugging - Adapter Factory', () => {
209
209
210
210
const descriptor = await factory . createDebugAdapterDescriptor ( session , nodeExecutable ) ;
211
211
212
- assert . deepEqual ( descriptor , debugExecutable ) ;
212
+ assert . deepStrictEqual ( descriptor , debugExecutable ) ;
213
213
} ) ;
214
214
215
215
test ( "Don't pass the --log-dir argument to debugger if configuration.logToFile is set to false" , async ( ) => {
@@ -218,7 +218,7 @@ suite('Debugging - Adapter Factory', () => {
218
218
219
219
const descriptor = await factory . createDebugAdapterDescriptor ( session , nodeExecutable ) ;
220
220
221
- assert . deepEqual ( descriptor , debugExecutable ) ;
221
+ assert . deepStrictEqual ( descriptor , debugExecutable ) ;
222
222
} ) ;
223
223
224
224
test ( 'Send attach to local process telemetry if attaching to a local process' , async ( ) => {
@@ -243,16 +243,25 @@ suite('Debugging - Adapter Factory', () => {
243
243
244
244
const descriptor = await factory . createDebugAdapterDescriptor ( session , nodeExecutable ) ;
245
245
246
- assert . deepEqual ( descriptor , debugExecutable ) ;
246
+ assert . deepStrictEqual ( descriptor , debugExecutable ) ;
247
247
} ) ;
248
248
249
249
test ( 'Use "debugAdapterPython" when specified' , async ( ) => {
250
250
const session = createSession ( { debugAdapterPython : '/bin/custompy' } ) ;
251
251
const debugExecutable = new DebugAdapterExecutable ( '/bin/custompy' , [ debugAdapterPath ] ) ;
252
+ const customInterpreter = {
253
+ architecture : Architecture . Unknown ,
254
+ path : '/bin/custompy' ,
255
+ sysPrefix : '' ,
256
+ sysVersion : '' ,
257
+ envType : EnvironmentType . Unknown ,
258
+ version : new SemVer ( '3.7.4-test' ) ,
259
+ } ;
260
+ when ( interpreterService . getInterpreterDetails ( '/bin/custompy' ) ) . thenResolve ( customInterpreter ) ;
252
261
253
262
const descriptor = await factory . createDebugAdapterDescriptor ( session , nodeExecutable ) ;
254
263
255
- assert . deepEqual ( descriptor , debugExecutable ) ;
264
+ assert . deepStrictEqual ( descriptor , debugExecutable ) ;
256
265
} ) ;
257
266
258
267
test ( 'Do not use "python" to spawn the debug adapter' , async ( ) => {
@@ -261,6 +270,6 @@ suite('Debugging - Adapter Factory', () => {
261
270
262
271
const descriptor = await factory . createDebugAdapterDescriptor ( session , nodeExecutable ) ;
263
272
264
- assert . deepEqual ( descriptor , debugExecutable ) ;
273
+ assert . deepStrictEqual ( descriptor , debugExecutable ) ;
265
274
} ) ;
266
275
} ) ;
0 commit comments