generated from 202306-NEA-DZ-FEW/capstone-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Hopehub:re] #135
- Loading branch information
Showing
25 changed files
with
155 additions
and
132 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
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
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 |
---|---|---|
|
@@ -110,7 +110,7 @@ exports[`renders correctly 1`] = ` | |
<summary | ||
className="text-Accent text-lg font-bold underline font-poppins text-NeutralBlack font-semibold dark:text-NeutralWhite" | ||
> | ||
User | ||
John Doe | ||
</summary> | ||
<ul | ||
className="menu w-32 text-NeutralBlack font-medium font-poppins" | ||
|
@@ -211,7 +211,7 @@ exports[`renders correctly 1`] = ` | |
</li> | ||
<li> | ||
<a | ||
href="/Payment?userid=undefined" | ||
href="/Tickets?userid=undefined" | ||
onClick={[Function]} | ||
onMouseEnter={[Function]} | ||
onTouchStart={[Function]} | ||
|
@@ -234,7 +234,7 @@ exports[`renders correctly 1`] = ` | |
d="M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM64 80c0-8.8 7.2-16 16-16h64c8.8 0 16 7.2 16 16s-7.2 16-16 16H80c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16h64c8.8 0 16 7.2 16 16s-7.2 16-16 16H80c-8.8 0-16-7.2-16-16zm128 72c8.8 0 16 7.2 16 16v17.3c8.5 1.2 16.7 3.1 24.1 5.1c8.5 2.3 13.6 11 11.3 19.6s-11 13.6-19.6 11.3c-11.1-3-22-5.2-32.1-5.3c-8.4-.1-17.4 1.8-23.6 5.5c-5.7 3.4-8.1 7.3-8.1 12.8c0 3.7 1.3 6.5 7.3 10.1c6.9 4.1 16.6 7.1 29.2 10.9l.5 .1 0 0 0 0c11.3 3.4 25.3 7.6 36.3 14.6c12.1 7.6 22.4 19.7 22.7 38.2c.3 19.3-9.6 33.3-22.9 41.6c-7.7 4.8-16.4 7.6-25.1 9.1V440c0 8.8-7.2 16-16 16s-16-7.2-16-16V422.2c-11.2-2.1-21.7-5.7-30.9-8.9l0 0c-2.1-.7-4.2-1.4-6.2-2.1c-8.4-2.8-12.9-11.9-10.1-20.2s11.9-12.9 20.2-10.1c2.5 .8 4.8 1.6 7.1 2.4l0 0 0 0 0 0c13.6 4.6 24.6 8.4 36.3 8.7c9.1 .3 17.9-1.7 23.7-5.3c5.1-3.2 7.9-7.3 7.8-14c-.1-4.6-1.8-7.8-7.7-11.6c-6.8-4.3-16.5-7.4-29-11.2l-1.6-.5 0 0c-11-3.3-24.3-7.3-34.8-13.7c-12-7.2-22.6-18.9-22.7-37.3c-.1-19.4 10.8-32.8 23.8-40.5c7.5-4.4 15.8-7.2 24.1-8.7V232c0-8.8 7.2-16 16-16z" | ||
/> | ||
</svg> | ||
Payments | ||
Tickets | ||
</a> | ||
</li> | ||
<li> | ||
|
@@ -448,7 +448,7 @@ exports[`renders correctly 1`] = ` | |
className="pt-12" | ||
> | ||
<div | ||
className="flex justify-center font-semibold font-poppins flex-col md:flex-row max-w-screen bg-NeutralWhite dark:bg-NeutralBlack" | ||
className="flex justify-center px-8 md:px-0 mt-16 font-semibold font-poppins flex-col md:flex-row max-w-screen bg-NeutralWhite dark:bg-NeutralBlack" | ||
> | ||
<div | ||
className="pb-12 lg:py-16 lg:w-[60%] md:[60%] flex " | ||
|
@@ -537,7 +537,7 @@ exports[`renders correctly 1`] = ` | |
name="name" | ||
onChange={[Function]} | ||
type="text" | ||
value="" | ||
value="John Doe" | ||
/> | ||
</div> | ||
<div | ||
|
@@ -573,7 +573,7 @@ exports[`renders correctly 1`] = ` | |
name="Birth Date" | ||
onChange={[Function]} | ||
type="date" | ||
value="" | ||
value="1990-01-01" | ||
/> | ||
</div> | ||
<div | ||
|
@@ -591,6 +591,7 @@ exports[`renders correctly 1`] = ` | |
name="email" | ||
onChange={[Function]} | ||
type="email" | ||
value="[email protected]" | ||
/> | ||
</div> | ||
<div | ||
|
@@ -608,6 +609,7 @@ exports[`renders correctly 1`] = ` | |
name="phone" | ||
onChange={[Function]} | ||
type="number" | ||
value="1234567890" | ||
/> | ||
</div> | ||
</form> | ||
|
@@ -647,7 +649,7 @@ exports[`renders correctly 1`] = ` | |
</label> | ||
<form> | ||
<fieldset | ||
className="form-control w-96 mt-2" | ||
className="form-control md:w-96 mt-2" | ||
> | ||
<div | ||
className="relative flex flex-row mr-[-2rem]" | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,16 @@ import renderer from "react-test-renderer"; | |
|
||
import TherapistProfile from "../updateTherapist"; | ||
|
||
const user = { | ||
// Populate with necessary user data for testing | ||
name: "John Doe", | ||
birthDate: "1990-01-01", | ||
email: "[email protected]", | ||
phoneNumber: "1234567890", | ||
// Add other user properties as needed | ||
}; | ||
|
||
it("renders correctly", () => { | ||
const tree = renderer.create(<TherapistProfile />).toJSON(); | ||
const tree = renderer.create(<TherapistProfile user={user} />).toJSON(); | ||
expect(tree).toMatchSnapshot(); | ||
}); |
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
Oops, something went wrong.