-
Notifications
You must be signed in to change notification settings - Fork 93
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
Fix tests #145
Fix tests #145
Conversation
plain deepEqual is way too lax!
These tests were plain incorrect, but this went unnoticed due to the laxness of deepEqual
Argh, does anyone really still care about node 0.12 ? |
use assert.deepEqual as mediocre workaround for assert.deepStrictEqual
no, I even happy to drop 4 if required. Two last stable version at most and 8.0 is around the corner |
Dropping node 0.12 would be a good idea then. A fair amount of ES6 (e.g. 'const' and 'class') should then work provided code uses 'use strict'. This seems to be a cause of test failures for some of the stuff in PR #130 (by @nschoe). His stuff is overall hard to review however because of the messy commits that mix code changes with style or whitespace changes. While I fully agree some cleanup would be welcome (e.g. indentation is really all over the place), this should really be done in a separate commit that performs no functional changes. I've purposely tried to keep my commits clean and offered them in snack-sized pull requests. (Even so, PR #143 is still open...) Based on a quick look it seems @nschoe's work is mostly related to implementing a dbus service in nodejs... while I might be interested in this in the future, I also have limited time and right now have to prioritize work on dbus client functionality, which is fairly urgent for me. #143 and #144 fix the most glaring demarshalling issues I ran into (although properly deserializing dictionaries as objects (for |
Thanks @mvduin Client side is more important for me as well, I'd like to use more this library as desktop automation tool (avahi, network manager, unity/gnome/kde integrations) I also thinking about splitting this into core protocol ( basically just sending / receiving messages ) and everything built on top ( exposing / consuming services and standard dbus interfaces ) |
The tests used deepEqual (i.e. deep ==) instead of deepStrictEqual (i.e. deep ===), which inappropriately considers all sorts of things equal that really aren't.
Fixing this uncovered that the test for unmarshalling booleans was broken, which I fixed also.