Skip to content

Commit

Permalink
test: add hostname to partial mocks (#1084)
Browse files Browse the repository at this point in the history
  • Loading branch information
setchy committed May 6, 2024
1 parent be53183 commit 2dd1c81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/__mocks__/partial-mocks.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import type { Notification, Subject, User } from '../typesGitHub';
import Constants from '../utils/constants';

export function partialMockNotification(
subject: Partial<Subject>,
): Notification {
const mockNotification: Partial<Notification> = {
hostname: Constants.GITHUB_API_BASE_URL,
subject: subject as Subject,
};

Expand Down

0 comments on commit 2dd1c81

Please sign in to comment.