-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove router directory * add eslint sort import plugin * implement useSiweAuth hook * update protectedRoute * remove dashboard route * update vite.config * refactor identifiers page * fix import * refactor attestation page * fix issue * remove garbage codes * add reveal functionality * fix loading issue * add test case * fix
- Loading branch information
1 parent
f16afe1
commit 3ed3b06
Showing
53 changed files
with
1,297 additions
and
1,066 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import '@testing-library/jest-dom'; | ||
|
||
import { render, screen } from '@testing-library/react'; | ||
import { MemoryRouter } from 'react-router-dom'; | ||
|
||
import { Provider } from '../../../enums'; | ||
|
||
import StepOne from './StepOne'; | ||
|
||
describe('StepOne Component', () => { | ||
it('renders the component with the correct provider', () => { | ||
render( | ||
<MemoryRouter> | ||
<StepOne provider={Provider.Google} handleNextStep={() => {}} /> | ||
</MemoryRouter> | ||
); | ||
|
||
expect(screen.getByText('Let’s get started!')).toBeInTheDocument(); | ||
expect( | ||
screen.getByText('Please authenticate with Google to continue.') | ||
).toBeInTheDocument(); | ||
expect( | ||
screen.getByRole('button', { name: /Authorize with Google/i }) | ||
).toBeInTheDocument(); | ||
}); | ||
}); |
Oops, something went wrong.