Skip to content

Commit

Permalink
fix: replace filename
Browse files Browse the repository at this point in the history
  • Loading branch information
ovflowd committed Jan 20, 2024
1 parent a40643c commit 3cd3a7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions components/Common/AvatarGroup/__tests__/index.test.mjs
Original file line number Diff line number Diff line change
@@ -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';

Expand All @@ -22,7 +22,7 @@ const names = [
];

const avatars = names.map(name => ({
src: githubProfileAvatarUrl(name),
src: getGitHubAvatarUrl(name),
alt: name,
}));

Expand Down
6 changes: 3 additions & 3 deletions util/__tests__/gitHubUtils.test.mjs
Original file line number Diff line number Diff line change
@@ -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'
);
});
Expand Down

0 comments on commit 3cd3a7b

Please sign in to comment.