Skip to content

Commit 9cc842d

Browse files
committed
refactor(api): request function typing
Signed-off-by: Adam Setch <adam.setch@outlook.com>
1 parent eb4d560 commit 9cc842d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/renderer/utils/api/client.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ describe('renderer/utils/api/client.ts', () => {
125125
});
126126

127127
it('should unpaginate notifications list for user', async () => {
128+
performAuthenticatedRESTRequestSpy.mockImplementation();
129+
128130
const mockSettings: Partial<SettingsState> = {
129131
participating: false,
130132
fetchReadNotifications: false,
@@ -138,7 +140,7 @@ describe('renderer/utils/api/client.ts', () => {
138140

139141
expect(performAuthenticatedRESTRequestSpy).toHaveBeenCalledWith(
140142
'GET',
141-
'https://api.github.com/notifications?participating=false&all=false ',
143+
'https://api.github.com/notifications?participating=false&all=false',
142144
mockGitHubCloudAccount.token,
143145
{},
144146
true,

0 commit comments

Comments
 (0)