@@ -47,22 +47,22 @@ suite('Unit Tests - ManagementService', () => {
47
47
} ) ;
48
48
49
49
test ( 'Execute command if in experiment' , async ( ) => {
50
- when ( experiment . inExperiment ( AlwaysDisplayTestExplorerGroups . enabled ) ) . thenReturn ( true ) ;
50
+ when ( experiment . inExperiment ( AlwaysDisplayTestExplorerGroups . experiment ) ) . thenReturn ( true ) ;
51
51
52
52
await testManagementService . activate ( instance ( mock ( JediSymbolProvider ) ) ) ;
53
53
54
54
verify ( commandManager . executeCommand ( 'setContext' , 'testsDiscovered' , true ) ) . once ( ) ;
55
- verify ( experiment . inExperiment ( AlwaysDisplayTestExplorerGroups . enabled ) ) . once ( ) ;
55
+ verify ( experiment . inExperiment ( AlwaysDisplayTestExplorerGroups . experiment ) ) . once ( ) ;
56
56
verify ( experiment . inExperiment ( AlwaysDisplayTestExplorerGroups . control ) ) . never ( ) ;
57
57
verify ( experiment . sendTelemetryIfInExperiment ( anything ( ) ) ) . never ( ) ;
58
58
} ) ;
59
59
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 ) ;
61
61
62
62
await testManagementService . activate ( instance ( mock ( JediSymbolProvider ) ) ) ;
63
63
64
64
verify ( commandManager . executeCommand ( 'setContext' , 'testsDiscovered' , anything ( ) ) ) . never ( ) ;
65
- verify ( experiment . inExperiment ( AlwaysDisplayTestExplorerGroups . enabled ) ) . once ( ) ;
65
+ verify ( experiment . inExperiment ( AlwaysDisplayTestExplorerGroups . experiment ) ) . once ( ) ;
66
66
verify ( experiment . inExperiment ( AlwaysDisplayTestExplorerGroups . control ) ) . never ( ) ;
67
67
verify ( experiment . sendTelemetryIfInExperiment ( AlwaysDisplayTestExplorerGroups . control ) ) . once ( ) ;
68
68
} ) ;
0 commit comments