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.