Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
ATNoblis committed Dec 19, 2024
1 parent 7f45ecc commit d72d3c0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,11 @@ 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 }}
role-duration-seconds: 900
aws-region: us-east-1

- name: AWS Sync
# if: github.actor != 'dependabot[bot]'
run: aws s3 sync ./dist s3://${{ secrets.BUCKET_NAME }}/ --delete
21 changes: 0 additions & 21 deletions src/components/ErrorBoundary.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(<ErrorBoundary />)

// 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(<ErrorBoundary />)
Expand Down

0 comments on commit d72d3c0

Please sign in to comment.