Skip to content

Commit

Permalink
remove unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
hungvu193 committed Nov 22, 2024
1 parent 279ea76 commit 9cf8dc2
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/unit/InitialSettingPageTest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import Onyx from 'react-native-onyx';
import {act} from 'react-test-renderer';
import * as Localize from '@libs/Localize';
import App from '@src/App';
import OnyxUpdateManager from '@src/libs/actions/OnyxUpdateManager';
import ONYXKEYS from '@src/ONYXKEYS';
import type {NativeNavigationMock} from '../../__mocks__/@react-navigation/native';
import PusherHelper from '../utils/PusherHelper';
Expand All @@ -24,9 +23,9 @@ TestHelper.setupGlobalFetchMock();

function navigateToSetting() {
const hintText = Localize.translateLocal('sidebarScreen.buttonMySettings');
const reportHeaderBackButton = screen.queryByAccessibilityHint(hintText);
if (reportHeaderBackButton) {
fireEvent(reportHeaderBackButton, 'press');
const mySettingButton = screen.queryByAccessibilityHint(hintText);
if (mySettingButton) {
fireEvent(mySettingButton, 'press');
}
return waitForBatchedUpdatesWithAct();
}
Expand Down Expand Up @@ -66,8 +65,6 @@ function signInAppAndEnterTestFlow(dismissedValue?: boolean): Promise<void> {
});
}

OnyxUpdateManager();

describe('Switch to Expensify Classic flow', () => {
beforeEach(() => {
jest.clearAllMocks();
Expand Down

0 comments on commit 9cf8dc2

Please sign in to comment.