-
-
Notifications
You must be signed in to change notification settings - Fork 149
ZA|Innocent Niwatwine| Data-groups Sprint-2 #629
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?
Conversation
Sprint-2/interpret/invert.js
Outdated
// e) Fix the implementation of invert (and write tests to prove it's fixed!) | ||
module.exports = invert; |
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.
Please add the test file for 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.
Okay thank you
const currentOutput = invert({ a: 1, b: 2, c: 3 }); | ||
const targetOutput = { "1": "a", "2": "b", "3": "c" }; | ||
|
||
expect(currentOutput).toEqual(targetOutput); |
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.
Please add the test file.
Learners, PR Template
Self checklist
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.