Skip to content

Commit

Permalink
chore: apply prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsojramos committed Oct 9, 2023
1 parent 9b5953a commit 8cd34a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/utils/comms.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const { ipcRenderer, shell } = require('electron');
const remote = require('@electron/remote');

describe('utils/comms.ts', () => {
beforeEach(function() {
beforeEach(function () {
jest.spyOn(ipcRenderer, 'send');
});

Expand Down
7 changes: 4 additions & 3 deletions src/utils/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ export const raiseNativeNotification = (

if (notifications.length === 1) {
const notification = notifications[0];
title = `${process.platform !== 'win32' ? 'Gitify - ' : ''}${notification.repository.full_name
}`;
title = `${process.platform !== 'win32' ? 'Gitify - ' : ''}${
notification.repository.full_name
}`;
body = notification.subject.title;
} else {
title = 'Gitify';
Expand All @@ -81,7 +82,7 @@ export const raiseNativeNotification = (
silent: true,
});

nativeNotification.onclick = function() {
nativeNotification.onclick = function () {
if (notifications.length === 1) {
remote.getCurrentWindow().hide();
openInBrowser(notifications[0], accounts);
Expand Down

0 comments on commit 8cd34a2

Please sign in to comment.