Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/renderer/context/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ describe('renderer/context/App.tsx', () => {
it('should call markNotificationsAsRead', async () => {
const getContext = renderWithContext();

act(() => {
await act(async () => {
getContext().markNotificationsAsRead([mockGitifyNotification]);
});

Expand All @@ -152,7 +152,7 @@ describe('renderer/context/App.tsx', () => {
it('should call markNotificationsAsDone', async () => {
const getContext = renderWithContext();

act(() => {
await act(async () => {
getContext().markNotificationsAsDone([mockGitifyNotification]);
});

Expand All @@ -167,7 +167,7 @@ describe('renderer/context/App.tsx', () => {
it('should call unsubscribeNotification', async () => {
const getContext = renderWithContext();

act(() => {
await act(async () => {
getContext().unsubscribeNotification(mockGitifyNotification);
});

Expand All @@ -188,7 +188,7 @@ describe('renderer/context/App.tsx', () => {
it('should call updateSetting', async () => {
const getContext = renderWithContext();

act(() => {
await act(async () => {
getContext().updateSetting('participating', true);
});

Expand Down Expand Up @@ -235,7 +235,7 @@ describe('renderer/context/App.tsx', () => {

const getContext = renderWithContext();

act(() => {
await act(async () => {
getContext().loginWithDeviceFlowStart();
});

Expand All @@ -249,7 +249,7 @@ describe('renderer/context/App.tsx', () => {

const getContext = renderWithContext();

act(() => {
await act(async () => {
getContext().loginWithDeviceFlowPoll(
'session' as unknown as DeviceFlowSession,
);
Expand Down Expand Up @@ -284,7 +284,7 @@ describe('renderer/context/App.tsx', () => {

const getContext = renderWithContext();

act(() => {
await act(async () => {
getContext().loginWithOAuthApp({
clientId: 'id' as ClientID,
clientSecret: 'secret' as ClientSecret,
Expand All @@ -298,7 +298,7 @@ describe('renderer/context/App.tsx', () => {
it('logoutFromAccount calls removeAccountNotifications, removeAccount', async () => {
const getContext = renderWithContext();

act(() => {
await act(async () => {
getContext().logoutFromAccount(mockGitHubCloudAccount);
});

Expand Down
Loading