Skip to content

Commit

Permalink
update a readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
stasguma committed May 4, 2024
1 parent 0c6f726 commit 329da79
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion json-server/db.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"id": "1",
"username": "admin",
"password": "gggg",
"password": "supadupapass",
"isAuthenticated": true,
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6Ik5vdCBHb29kIEZvciBZb3UiLCJpYXQiOjE1MTYyMzkwMjJ9.PuT8C27aM6eEWFws3c4Negisv_wWtmlT4Eg9Gn-IpnY"
}
Expand Down
2 changes: 1 addition & 1 deletion mock-config-server/db.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"id": 1,
"username": "admin",
"password": "gggg",
"password": "supadupapass",
"isAuthenticated": true,
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6Ik5vdCBHb29kIEZvciBZb3UiLCJpYXQiOjE1MTYyMzkwMjJ9.PuT8C27aM6eEWFws3c4Negisv_wWtmlT4Eg9Gn-IpnY",
"avatarUrl": "https://media.tacdn.com/media/attractions-splice-spp-674x446/07/03/1c/9c.jpg",
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ An open source frontend application built using the **React** ⚛️ and **Featu

## Live demo

- [Application](https://frontend-react-adv.onrender.com/)
- [Application](https://frontend-react-adv.onrender.com/) (login: admin; password: supadupapass)
- [Storybook](https://main--65c1748bed8d59893ba6a94f.chromatic.com/)

## About project
Expand All @@ -23,7 +23,7 @@ Don't pay too much attention to the design, that's not the point of this project

## Features

- Typed (API adapters, form variables validators by valibot)
- Typed (API adapters, form variables validators by `Valibot`)
- Developing by Feature-Sliced Design (Layers isolation and composition, Public API, DDD)
- Fully API emulation with `Mock Config Server`
- Tested with `Vitest`, `Testing Library`
Expand Down
2 changes: 1 addition & 1 deletion src/entities/Session/api/__mocks__/sessionHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const sessionHandlers = [
};
const errorResponseData = { error: 'Unauthorized', message: 'User was not found' };

if (username === 'admin' && password !== 'gggg') {
if (username === 'admin' && password !== 'supadupapass') {
return HttpResponse.json({ error: errorResponseData }, { status: 403 });
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('loginThunkAction for a Login feature', () => {

const credentials = {
username: 'admin',
password: 'gggg',
password: 'supadupapass',
};

const thunk = new TestAsyncThunk<ISession, ILoginForm>(loginThunkAction);
Expand Down

0 comments on commit 329da79

Please sign in to comment.