Skip to content

Commit 924c531

Browse files
IDAM-626 Fixed broken test and updated snapshot
1 parent e7eb9e1 commit 924c531

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

custom-pages/universal-login/src/components/ForgotPassword/ForgotPassword.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class ForgotPassword extends Component {
1414
this.auth = new AuthApi()
1515
this.state = {
1616
message: (props.location && props.location.state && props.location.state?.message) || null,
17-
value: (props.location && props.location.state && props.location.state?.email) || null,
17+
value: (props.location && props.location.state && props.location.state?.email) || undefined,
1818
errors: {
1919
email: false
2020
},

custom-pages/universal-login/src/components/NotFound/__tests__/__snapshots__/NotFound.test.js.snap

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@
22

33
exports[`NotFound components should render NotFound correctly 1`] = `
44
<div>
5-
<div
6-
class="notFound"
7-
>
8-
<h4>
9-
Something must have gone slightly wrong!
10-
</h4>
11-
</div>
5+
<h4>
6+
Something must have gone slightly wrong!
7+
</h4>
8+
<p>
9+
<a
10+
href="/"
11+
>
12+
← Back
13+
</a>
14+
</p>
1215
</div>
1316
`;

custom-pages/universal-login/src/helpers/__tests__/validateRegisterFields.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { validateRegisterFields } from "../index";
1+
import { validateRegisterFields } from "../validateRegisterFields";
22

33
describe("validateFields ", () => {
44
it("should return tests.email => true with invalid email", () => {

0 commit comments

Comments
 (0)