File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ test("loadPropertiesFromApi throws if response data contains unexpected objects"
5151 ) ;
5252} ) ;
5353
54- test ( "loadPropertiesFromApi returns empty object if not on dotcom " , async ( t ) => {
54+ test ( "loadPropertiesFromApi returns empty object if on GHES " , async ( t ) => {
5555 sinon . stub ( api , "getRepositoryProperties" ) . resolves ( {
5656 headers : { } ,
5757 status : 200 ,
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export async function loadPropertiesFromApi(
4444) : Promise < RepositoryProperties > {
4545 // TODO: To be safe for now; later we should replace this with a version check once we know
4646 // which version of GHES we expect this to be supported by.
47- if ( gitHubVersion . type !== GitHubVariant . DOTCOM ) {
47+ if ( gitHubVersion . type === GitHubVariant . GHES ) {
4848 return { } ;
4949 }
5050
You can’t perform that action at this time.
0 commit comments