Skip to content

Commit 83f4da3

Browse files
authored
refactor: rename repository component (#1267)
1 parent 3409139 commit 83f4da3

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

src/components/AccountNotifications.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { mockGitHubNotifications } from '../utils/api/__mocks__/response-mocks';
44
import * as links from '../utils/links';
55
import { AccountNotifications } from './AccountNotifications';
66

7-
jest.mock('./Repository', () => ({
8-
RepositoryNotifications: () => <div>Repository</div>,
7+
jest.mock('./RepositoryNotifications', () => ({
8+
RepositoryNotifications: () => <div>Repository Notifications</div>,
99
}));
1010

1111
describe('components/AccountNotifications.tsx', () => {

src/components/AccountNotifications.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { type FC, useState } from 'react';
77
import type { Account } from '../types';
88
import type { Notification } from '../typesGitHub';
99
import { openAccountProfile } from '../utils/links';
10-
import { RepositoryNotifications } from './Repository';
10+
import { RepositoryNotifications } from './RepositoryNotifications';
1111
import { PlatformIcon } from './icons/PlatformIcon';
1212

1313
interface IAccountNotifications {

src/components/Repository.test.tsx renamed to src/components/RepositoryNotifications.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
mockSingleNotification,
88
} from '../utils/api/__mocks__/response-mocks';
99
import * as comms from '../utils/comms';
10-
import { RepositoryNotifications } from './Repository';
10+
import { RepositoryNotifications } from './RepositoryNotifications';
1111

1212
jest.mock('./NotificationRow', () => ({
1313
NotificationRow: () => <div>NotificationRow</div>,
File renamed without changes.

src/components/__snapshots__/AccountNotifications.test.tsx.snap

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)