We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da71d39 commit f0d12aeCopy full SHA for f0d12ae
__tests__/auth.test.ts
@@ -16,7 +16,7 @@ describe('authenticate', () => {
16
mockFetch.mockResolvedValue({
17
ok: true,
18
status: 200,
19
- json: () => Promise.resolve({ token: 'ghs_app_123' })
+ json: async () => Promise.resolve({ token: 'ghs_app_123' })
20
} as Response)
21
22
const result = await authenticate(
@@ -38,7 +38,7 @@ describe('authenticate', () => {
38
39
ok: false,
40
status: 404,
41
- json: () => Promise.resolve({ error: 'Not installed' })
+ json: async () => Promise.resolve({ error: 'Not installed' })
42
43
44
0 commit comments