Skip to content

Commit 347fd88

Browse files
committed
fix broken test
1 parent d3bb34e commit 347fd88

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/react-native/__tests__/js/app-services/use-app.test.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function MyApp() {
3131
}
3232
// :snippet-end:
3333

34-
afterEach(() => App.getApp(APP_ID).currentUser?.logOut());
34+
afterEach(async () => await App.getApp(APP_ID).currentUser?.logOut());
3535

3636
test('useApp hook works correctly', async () => {
3737
const {getByTestId} = render(<AppWrapper />);

examples/react-native/__tests__/ts/app-services/use-app.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function MyApp() {
3131
}
3232
// :snippet-end:
3333

34-
afterEach(() => App.getApp(APP_ID).currentUser?.logOut());
34+
afterEach(async () => await App.getApp(APP_ID).currentUser?.logOut());
3535

3636
test('useApp hook works correctly', async () => {
3737
const {getByTestId} = render(<AppWrapper />);

0 commit comments

Comments
 (0)