generated from Arquisoft/dede_0
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into Valentin_Interfaz
- Loading branch information
Showing
6 changed files
with
73 additions
and
64 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
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 |
---|---|---|
|
@@ -4,7 +4,9 @@ import UserList from "../UserList"; | |
import {User} from "../../shared/shareddtypes"; | ||
|
||
test('check that the list of users renders propertly', async () => { | ||
const userList:User[] = [{name: 'Pablo', email: '[email protected]' }]; | ||
const crypto = require('crypto'); | ||
const pass = crypto.randomBytes(4).toString('utf8'); | ||
const userList:User[] = [{name: 'Pablo', email: '[email protected]', dni: "10", password:pass,repeatPassword: pass}]; | ||
const {getByText} = render(<UserList users={userList}/>); | ||
expect(getByText(userList[0].name)).toBeInTheDocument(); | ||
expect(getByText(userList[0].email)).toBeInTheDocument(); | ||
|
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