@@ -21,7 +21,7 @@ import {
2121} from '../../client/testing/common/types' ;
2222import { TEST_OUTPUT_CHANNEL } from '../../client/testing/constants' ;
2323import { ITestingSettings } from '../../client/testing/configuration/types' ;
24- import { UnitTestConfigurationService } from '../../client/testing/configuration' ;
24+ import { NONE_SELECTED , UnitTestConfigurationService } from '../../client/testing/configuration' ;
2525
2626suite ( 'Unit Tests - ConfigurationService' , ( ) => {
2727 UNIT_TEST_PRODUCTS . forEach ( ( product ) => {
@@ -263,7 +263,7 @@ suite('Unit Tests - ConfigurationService', () => {
263263 try {
264264 await testConfigService . target . displayTestFrameworkError ( workspaceUri ) ;
265265 } catch ( exc ) {
266- if ( exc !== null ) {
266+ if ( exc !== NONE_SELECTED ) {
267267 throw exc ;
268268 }
269269 exceptionThrown = true ;
@@ -294,7 +294,7 @@ suite('Unit Tests - ConfigurationService', () => {
294294 } ) ;
295295 await testConfigService . target . displayTestFrameworkError ( workspaceUri ) ;
296296 } catch ( exc ) {
297- if ( exc !== null ) {
297+ if ( exc !== NONE_SELECTED ) {
298298 throw exc ;
299299 }
300300 exceptionThrown = true ;
@@ -333,7 +333,7 @@ suite('Unit Tests - ConfigurationService', () => {
333333 . setup ( ( t ) => t . selectTestRunner ( typeMoq . It . isAny ( ) ) )
334334 . returns ( ( ) => {
335335 selectTestRunnerInvoked = true ;
336- return Promise . resolve ( product as any ) ;
336+ return Promise . resolve ( product ) ;
337337 } ) ;
338338
339339 const configMgr = typeMoq . Mock . ofType < ITestConfigurationManager > (
@@ -382,7 +382,7 @@ suite('Unit Tests - ConfigurationService', () => {
382382 try {
383383 await testConfigService . target . displayTestFrameworkError ( workspaceUri ) ;
384384 } catch ( exc ) {
385- if ( exc !== null ) {
385+ if ( exc !== NONE_SELECTED ) {
386386 throw exc ;
387387 }
388388 exceptionThrown = true ;
@@ -407,7 +407,7 @@ suite('Unit Tests - ConfigurationService', () => {
407407 . setup ( ( t ) => t . selectTestRunner ( typeMoq . It . isAny ( ) ) )
408408 . returns ( ( ) => {
409409 selectTestRunnerInvoked = true ;
410- return Promise . resolve ( product as any ) ;
410+ return Promise . resolve ( product ) ;
411411 } ) ;
412412
413413 let enableTestInvoked = false ;
@@ -475,7 +475,7 @@ suite('Unit Tests - ConfigurationService', () => {
475475 . setup ( ( t ) => t . selectTestRunner ( typeMoq . It . isAny ( ) ) )
476476 . returns ( ( ) => {
477477 selectTestRunnerInvoked = true ;
478- return Promise . resolve ( product as any ) ;
478+ return Promise . resolve ( product ) ;
479479 } ) ;
480480
481481 const configMgr = typeMoq . Mock . ofType < ITestConfigurationManager > ( ) ;
0 commit comments