Skip to content

Commit

Permalink
refactor: update enterprise host test data (#1096)
Browse files Browse the repository at this point in the history
  • Loading branch information
setchy authored May 9, 2024
1 parent cec22f7 commit 6c33a26
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils/helpers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ describe('utils/helpers.ts', () => {
});
describe('isEnterpriseHost', () => {
it('should return true for enterprise host', () => {
expect(isEnterpriseHost('github.manos.im')).toBe(true);
expect(isEnterpriseHost('api.github.manos.im')).toBe(true);
expect(isEnterpriseHost('github.gitify.app')).toBe(true);
expect(isEnterpriseHost('api.github.gitify.app')).toBe(true);
});

it('should return false for non-enterprise host', () => {
Expand Down Expand Up @@ -95,8 +95,8 @@ describe('utils/helpers.ts', () => {
});

it('should generate a GitHub API url - enterprise', () => {
const result = getGitHubAPIBaseUrl('github.manos.im');
expect(result).toBe('https://github.manos.im/api/v3');
const result = getGitHubAPIBaseUrl('github.gitify.app');
expect(result).toBe('https://github.gitify.app/api/v3');
});
});

Expand Down

0 comments on commit 6c33a26

Please sign in to comment.