|
1 | 1 | import { Constants } from '../constants'; |
2 | | -import type { Hostname } from '../types'; |
| 2 | +import type { AccountNotifications, Hostname } from '../types'; |
3 | 3 | import type { |
4 | 4 | Notification, |
5 | 5 | Repository, |
6 | 6 | StateType, |
7 | 7 | Subject, |
8 | 8 | SubjectType, |
9 | 9 | } from '../typesGitHub'; |
10 | | -import { mockGitHubCloudAccount } from './account-mocks'; |
| 10 | +import { |
| 11 | + mockEnterpriseNotifications, |
| 12 | + mockGitHubNotifications, |
| 13 | + mockSingleNotification, |
| 14 | +} from '../utils/api/__mocks__/response-mocks'; |
| 15 | +import { |
| 16 | + mockGitHubCloudAccount, |
| 17 | + mockGitHubEnterpriseServerAccount, |
| 18 | +} from './account-mocks'; |
11 | 19 | import { mockToken } from './state-mocks'; |
12 | 20 | import { mockGitifyUser } from './user-mocks'; |
13 | 21 |
|
@@ -55,3 +63,24 @@ export function createMockNotificationForRepoName( |
55 | 63 | account: mockGitHubCloudAccount, |
56 | 64 | } as Notification; |
57 | 65 | } |
| 66 | + |
| 67 | +export const mockAccountNotifications: AccountNotifications[] = [ |
| 68 | + { |
| 69 | + account: mockGitHubCloudAccount, |
| 70 | + notifications: mockGitHubNotifications, |
| 71 | + error: null, |
| 72 | + }, |
| 73 | + { |
| 74 | + account: mockGitHubEnterpriseServerAccount, |
| 75 | + notifications: mockEnterpriseNotifications, |
| 76 | + error: null, |
| 77 | + }, |
| 78 | +]; |
| 79 | + |
| 80 | +export const mockSingleAccountNotifications: AccountNotifications[] = [ |
| 81 | + { |
| 82 | + account: mockGitHubCloudAccount, |
| 83 | + notifications: [mockSingleNotification], |
| 84 | + error: null, |
| 85 | + }, |
| 86 | +]; |
0 commit comments