-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minichallenge5 #98
base: master
Are you sure you want to change the base?
Minichallenge5 #98
Conversation
public/index.html
Outdated
@@ -26,6 +26,7 @@ | |||
<body> | |||
<noscript>You need to enable JavaScript to run this app.</noscript> | |||
<div id="root"></div> | |||
<div id="modal"></div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's ok this div for the modal portal but normally this can be implemented as part of a React component itself
Promise.resolve({ | ||
data: { ...videosMock }, | ||
}) | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
axios.mockReturnValue(
Promise.resolve({
data: { ...videosMock },
})
If this code is duplicated on another tests, you could figure it out how to reuse it
Layout.propTypes = { | ||
children: PropTypes.element.isRequired, | ||
}; | ||
|
||
export default Layout; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good use of Layout component
UPDATE_QUERY_VIDEO, | ||
ADD_TO_FAVORITES, | ||
REMOVE_FROM_FAVORITES, | ||
} from '../../utils/constants'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good use of constants
|
||
firebase.initializeApp(firebaseConfig); | ||
|
||
export { firebase }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remember to never put credentials on the code.
Try to use Env vars instead always. Please fix this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is because with this credentials, I can use them and access to your firebase data.
Acceptance Criteria
Bonus Points
|
Congrats! good job 😄 I leave some comments in order to improve some aspects. Generally it's ok 👌 Try to reach the 70% of test coverage, you almost do it! |
The application's authentication has been developed using firebase services. the login credentials are:
email: [email protected]
password:Rocks!
preview link: https://minichallenge5-wizeline-oscar.netlify.app/
Test coverage: