From d72d3c01e3b4fc706f46e950da8b290a97344e30 Mon Sep 17 00:00:00 2001 From: "Tran, Alex" Date: Thu, 19 Dec 2024 14:15:25 -0500 Subject: [PATCH] remove commented code --- .github/workflows/ui.yml | 2 -- src/components/ErrorBoundary.test.tsx | 21 --------------------- 2 files changed, 23 deletions(-) diff --git a/.github/workflows/ui.yml b/.github/workflows/ui.yml index 54fb709..b31e709 100644 --- a/.github/workflows/ui.yml +++ b/.github/workflows/ui.yml @@ -53,7 +53,6 @@ jobs: run: yarn build:${{ inputs.environment }} - name: Get AWS Creds - # if: github.actor != 'dependabot[bot]' uses: aws-actions/configure-aws-credentials@v4 with: role-to-assume: ${{ secrets.ROLEARN }} @@ -61,5 +60,4 @@ jobs: aws-region: us-east-1 - name: AWS Sync - # if: github.actor != 'dependabot[bot]' run: aws s3 sync ./dist s3://${{ secrets.BUCKET_NAME }}/ --delete diff --git a/src/components/ErrorBoundary.test.tsx b/src/components/ErrorBoundary.test.tsx index dedd5b6..3bc0824 100644 --- a/src/components/ErrorBoundary.test.tsx +++ b/src/components/ErrorBoundary.test.tsx @@ -28,27 +28,6 @@ afterEach(() => { jest.clearAllMocks() }) -// test('renders auth session error and navigate to logout after 5 seconds', () => { -// const navigateMock = jest.fn().mockImplementation(() => ({})) -// useNavigateMock.mockReturnValue(navigateMock) -// isRouteErrorResponseMock.mockReturnValue(true) -// routeErrorMock.mockReturnValue({ -// status: 401, -// statusText: 'Unauthorized', -// data: 'Unauthorized', -// }) - -// render() - -// expect( -// screen.getByText(/Your session has expired. Please login again./i) -// ).toBeInTheDocument() - -// jest.advanceTimersByTime(5000) - -// expect(navigateMock).toHaveBeenCalledWith(Routes.AUTH_LOGOUT) -// }) - test('renders generic error message', () => { routeErrorMock.mockReturnValue(new Error('Something went wrong')) render()