-
Notifications
You must be signed in to change notification settings - Fork 24
feat: fixed tm to td conversion (#172) #173
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
Conversation
Signed-off-by: Rohith <rgvmanikanta05@gmail.com>
✅ Deploy Preview for editdor ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.
Thanks @Rohithgvmg for this PR. You need to run the prettier --write src/services/operations.ts in order to the code being formatted according to the prettier rules.
Another thing is the unit tests also need to be changed in operations.test.ts file. You can see them failing when you run yarn test
The comment on line 144 is unnecessary.
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.
thanks for detailed review, fixed the code , kindly review
Signed-off-by: Rohith <rgvmanikanta05@gmail.com>
3bdbd8d to
1954647
Compare
|
@Rohithgvmg the tests are failing again. Make sure to test locally :) |
|
@Rohithgvmg while the correction to the test is ok (that is the expected behavior), you are not checking for the case with the |
|
@Rohithgvmg the check you have added is correct however that will never happen since your test input does not contain an Sorry for being thorough but this bug you are fixing has caused my demo to fail last time |
|
Thanks for the feedback, I could have been more careful in writing tests |
egekorkan
left a comment
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.
Thank you @Rohithgvmg for taking the feedback into account and addressing an issue that's quite important! That's what open source is about 🙃
Fixes #172
if @type is an array, only the tm:ThingModel is removed
if string , it is deleted from JSON