Repository: gitify-app/gitify
Pull request #1267 (2024-06-18 11:20:29)

refactor: rename repository component


Patch:
diff --git a/src/components/AccountNotifications.tsx b/src/components/AccountNotifications.tsx
index 8f90b740..57dba6da 100644
--- a/src/components/AccountNotifications.tsx
+++ b/src/components/AccountNotifications.tsx
@@ -7,7 +7,7 @@ import { type FC, useState } from 'react';
 import type { Account } from '../types';
 import type { Notification } from '../typesGitHub';
 import { openAccountProfile } from '../utils/links';
-import { RepositoryNotifications } from './Repository';
+import { RepositoryNotifications } from './RepositoryNotifications';
 import { PlatformIcon } from './icons/PlatformIcon';
 
 interface IAccountNotifications {


Test patch:
diff --git a/src/components/AccountNotifications.test.tsx b/src/components/AccountNotifications.test.tsx
index c8806b2c..ff5e5bbe 100644
--- a/src/components/AccountNotifications.test.tsx
+++ b/src/components/AccountNotifications.test.tsx
@@ -4,8 +4,8 @@ import { mockGitHubNotifications } from '../utils/api/__mocks__/response-mocks';
 import * as links from '../utils/links';
 import { AccountNotifications } from './AccountNotifications';
 
-jest.mock('./Repository', () => ({
-  RepositoryNotifications: () => <div>Repository</div>,
+jest.mock('./RepositoryNotifications', () => ({
+  RepositoryNotifications: () => <div>Repository Notifications</div>,
 }));
 
 describe('components/AccountNotifications.tsx', () => {
diff --git a/src/components/Repository.test.tsx b/src/components/RepositoryNotifications.test.tsx
similarity index 97%
rename from src/components/Repository.test.tsx
rename to src/components/RepositoryNotifications.test.tsx
index b8b9f3ff..7f1024d9 100644
--- a/src/components/Repository.test.tsx
+++ b/src/components/RepositoryNotifications.test.tsx
@@ -7,7 +7,7 @@ import {
   mockSingleNotification,
 } from '../utils/api/__mocks__/response-mocks';
 import * as comms from '../utils/comms';
-import { RepositoryNotifications } from './Repository';
+import { RepositoryNotifications } from './RepositoryNotifications';
 
 jest.mock('./NotificationRow', () => ({
   NotificationRow: () => <div>NotificationRow</div>,
diff --git a/src/components/Repository.tsx b/src/components/RepositoryNotifications.tsx
similarity index 100%
rename from src/components/Repository.tsx
rename to src/components/RepositoryNotifications.tsx
diff --git a/src/components/__snapshots__/AccountNotifications.test.tsx.snap b/src/components/__snapshots__/AccountNotifications.test.tsx.snap
index 4ddee861..21644ba4 100644
--- a/src/components/__snapshots__/AccountNotifications.test.tsx.snap
+++ b/src/components/__snapshots__/AccountNotifications.test.tsx.snap
@@ -65,7 +65,7 @@ exports[`components/AccountNotifications.tsx should render itself (github.com wi
         </div>
       </div>
       <div>
-        Repository
+        Repository Notifications
       </div>
     </div>
   </body>,
@@ -130,7 +130,7 @@ exports[`components/AccountNotifications.tsx should render itself (github.com wi
       </div>
     </div>
     <div>
-      Repository
+      Repository Notifications
     </div>
   </div>,
   "debug": [Function],
@@ -494,7 +494,7 @@ exports[`components/AccountNotifications.tsx should toggle account notifications
         </div>
       </div>
       <div>
-        Repository
+        Repository Notifications
       </div>
     </div>
   </body>,
@@ -559,7 +559,7 @@ exports[`components/AccountNotifications.tsx should toggle account notifications
       </div>
     </div>
     <div>
-      Repository
+      Repository Notifications
     </div>
   </div>,
   "debug": [Function],