-
Notifications
You must be signed in to change notification settings - Fork 11
Volodymyr w2 node.js #19
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
base: main
Are you sure you want to change the base?
Volodymyr w2 node.js #19
Conversation
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.
Great work,
You've made some good enough use case as required in the assignment requirements, with your clean structure you have covered key test scenarios.
LGTM; keep it up. 🎉
expect(response.status).toBe(404); | ||
expect(response.body).toEqual({ weatherText: 'City is not found!' }); | ||
}); | ||
|
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.
what about the 'City name is required'?
const keys = { | ||
API_KEY: 'a8fc789e050aec4c98ab7d578a5266dc' | ||
}; | ||
|
||
export default keys; |
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 the easy way as requested by the homework description, have you thought of a bit safer more reliable way? maybe you wanna lookup dotenv
?
No description provided.