@@ -10,7 +10,15 @@ describe("checkVariantAnalysisEnabled", () => {
10
10
expect ( isVariantAnalysisEnabledForGitHubHost ( ) ) . toBe ( true ) ;
11
11
} ) ;
12
12
13
- it ( "returns false when GHES enterprise URI is set" , async ( ) => {
13
+ it ( "returns false when GHES enterprise URI is set and variant analysis feature flag is not set" , async ( ) => {
14
+ await VSCODE_GITHUB_ENTERPRISE_URI_SETTING . updateValue (
15
+ "https://github.example.com" ,
16
+ ConfigurationTarget . Global ,
17
+ ) ;
18
+ expect ( isVariantAnalysisEnabledForGitHubHost ( ) ) . toBe ( false ) ;
19
+ } ) ;
20
+
21
+ it ( "returns false when GHES enterprise URI is set and variant analysis feature flag is set" , async ( ) => {
14
22
await VSCODE_GITHUB_ENTERPRISE_URI_SETTING . updateValue (
15
23
"https://github.example.com" ,
16
24
ConfigurationTarget . Global ,
@@ -22,9 +30,9 @@ describe("checkVariantAnalysisEnabled", () => {
22
30
expect ( isVariantAnalysisEnabledForGitHubHost ( ) ) . toBe ( false ) ;
23
31
} ) ;
24
32
25
- it ( "returns false when GHEC-DR URI is set but variant analysis feature flag is not set" , async ( ) => {
33
+ it ( "returns false when GHEC-DR URI is set and variant analysis feature flag is not set" , async ( ) => {
26
34
await VSCODE_GITHUB_ENTERPRISE_URI_SETTING . updateValue (
27
- "https://github. example.com" ,
35
+ "https://example.ghe .com" ,
28
36
ConfigurationTarget . Global ,
29
37
) ;
30
38
expect ( isVariantAnalysisEnabledForGitHubHost ( ) ) . toBe ( false ) ;
0 commit comments