@@ -47,22 +47,22 @@ suite('Unit Tests - ManagementService', () => {
4747 } ) ;
4848
4949 test ( 'Execute command if in experiment' , async ( ) => {
50- when ( experiment . inExperiment ( AlwaysDisplayTestExplorerGroups . enabled ) ) . thenReturn ( true ) ;
50+ when ( experiment . inExperiment ( AlwaysDisplayTestExplorerGroups . experiment ) ) . thenReturn ( true ) ;
5151
5252 await testManagementService . activate ( instance ( mock ( JediSymbolProvider ) ) ) ;
5353
5454 verify ( commandManager . executeCommand ( 'setContext' , 'testsDiscovered' , true ) ) . once ( ) ;
55- verify ( experiment . inExperiment ( AlwaysDisplayTestExplorerGroups . enabled ) ) . once ( ) ;
55+ verify ( experiment . inExperiment ( AlwaysDisplayTestExplorerGroups . experiment ) ) . once ( ) ;
5656 verify ( experiment . inExperiment ( AlwaysDisplayTestExplorerGroups . control ) ) . never ( ) ;
5757 verify ( experiment . sendTelemetryIfInExperiment ( anything ( ) ) ) . never ( ) ;
5858 } ) ;
5959 test ( 'If not in experiment, check and send Telemetry for control group and do not execute command' , async ( ) => {
60- when ( experiment . inExperiment ( AlwaysDisplayTestExplorerGroups . enabled ) ) . thenReturn ( false ) ;
60+ when ( experiment . inExperiment ( AlwaysDisplayTestExplorerGroups . experiment ) ) . thenReturn ( false ) ;
6161
6262 await testManagementService . activate ( instance ( mock ( JediSymbolProvider ) ) ) ;
6363
6464 verify ( commandManager . executeCommand ( 'setContext' , 'testsDiscovered' , anything ( ) ) ) . never ( ) ;
65- verify ( experiment . inExperiment ( AlwaysDisplayTestExplorerGroups . enabled ) ) . once ( ) ;
65+ verify ( experiment . inExperiment ( AlwaysDisplayTestExplorerGroups . experiment ) ) . once ( ) ;
6666 verify ( experiment . inExperiment ( AlwaysDisplayTestExplorerGroups . control ) ) . never ( ) ;
6767 verify ( experiment . sendTelemetryIfInExperiment ( AlwaysDisplayTestExplorerGroups . control ) ) . once ( ) ;
6868 } ) ;
0 commit comments