diff --git a/components/Common/AvatarGroup/__tests__/index.test.mjs b/components/Common/AvatarGroup/__tests__/index.test.mjs index 7fded2f2265fd..f04c7c1dbeb26 100644 --- a/components/Common/AvatarGroup/__tests__/index.test.mjs +++ b/components/Common/AvatarGroup/__tests__/index.test.mjs @@ -1,6 +1,6 @@ import { render, fireEvent } from '@testing-library/react'; -import { githubProfileAvatarUrl } from '@/util/gitHubUtils'; +import { getGitHubAvatarUrl } from '@/util/gitHubUtils'; import AvatarGroup from '../index'; @@ -22,7 +22,7 @@ const names = [ ]; const avatars = names.map(name => ({ - src: githubProfileAvatarUrl(name), + src: getGitHubAvatarUrl(name), alt: name, })); diff --git a/util/__tests__/gitHubUtils.test.mjs b/util/__tests__/gitHubUtils.test.mjs index be3941ad9542b..5597118077551 100644 --- a/util/__tests__/gitHubUtils.test.mjs +++ b/util/__tests__/gitHubUtils.test.mjs @@ -1,8 +1,8 @@ -import { githubProfileAvatarUrl } from '@/util/gitHubUtils'; +import { getGitHubAvatarUrl } from '@/util/gitHubUtils'; describe('Github utils', () => { - it('githubProfileAvatarUrl returns the correct URL', () => { - expect(githubProfileAvatarUrl('octocat')).toBe( + it('getGitHubAvatarUrl returns the correct URL', () => { + expect(getGitHubAvatarUrl('octocat')).toBe( 'https://avatars.githubusercontent.com/octocat' ); });