Skip to content

Commit

Permalink
fix: delay more stuff in test
Browse files Browse the repository at this point in the history
  • Loading branch information
robertherber committed Jun 13, 2024
1 parent 53d1a98 commit 2dce020
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hooks/useHealthkitAuthorization.test.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { renderHook, act } from '@testing-library/react-native'

import useHealthkitAuthorization from './useHealthkitAuthorization'
import waitForNextUpdate from '../test-utils'

describe('useHealthkitAuthorization', () => {
let NativeTypes: typeof import('../native-types')
let useHealthkitAuthorization: typeof import('./useHealthkitAuthorization').default
beforeAll(async () => {
NativeTypes = await import('../native-types')
useHealthkitAuthorization = (await import('./useHealthkitAuthorization')).default
})

test('should return shouldRequest', async () => {
Expand Down

0 comments on commit 2dce020

Please sign in to comment.