diff --git a/src/feature-flags/properties.test.ts b/src/feature-flags/properties.test.ts index ed351cb52..dd0c72a21 100644 --- a/src/feature-flags/properties.test.ts +++ b/src/feature-flags/properties.test.ts @@ -51,7 +51,7 @@ test("loadPropertiesFromApi throws if response data contains unexpected objects" ); }); -test("loadPropertiesFromApi returns empty object if not on dotcom", async (t) => { +test("loadPropertiesFromApi returns empty object if on GHES", async (t) => { sinon.stub(api, "getRepositoryProperties").resolves({ headers: {}, status: 200, diff --git a/src/feature-flags/properties.ts b/src/feature-flags/properties.ts index 8c9a94a2d..0104cddd9 100644 --- a/src/feature-flags/properties.ts +++ b/src/feature-flags/properties.ts @@ -44,7 +44,7 @@ export async function loadPropertiesFromApi( ): Promise { // TODO: To be safe for now; later we should replace this with a version check once we know // which version of GHES we expect this to be supported by. - if (gitHubVersion.type !== GitHubVariant.DOTCOM) { + if (gitHubVersion.type === GitHubVariant.GHES) { return {}; }