-
Notifications
You must be signed in to change notification settings - Fork 30k
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
test: add Symbol test for assert.deepEqual() #3327
Conversation
The existing test never ran because typeof Symbol === 'function' and not 'symbol'. Update to Symbol() which will be a symbol and not a function.
I would think we should maybe even go as far as adding tests for things like:
What are your thoughts on that? |
@evanlucas I think your first example is handled in this test addition over at #3124. However, that PR very possibly may never land, so let's put a pin in that for sure.... The second example you give, oh yes! |
It would be nice to have code coverage to catch such things |
LGTM |
@evanlucas On the one hand, #3124 got closed, so that suggests adding the tests you proposed separately. On the other hand, TSC agreed this week to lock |
The existing test never ran because typeof Symbol === 'function' and not 'symbol'. We have Symbols now so remove the check and just run the test. PR-URL: #3327 Reviewed-By: James M Snell <jasnell@gmail.com>
Landed in 0f99320 |
If we are going to be backporting tests for LTS this should probably be tagged |
Would the right tag be |
I believe so /cc @jasnell |
Got an update. lts-watch-v4x if the decision hasn't been made yet |
OK, tagged. Leave it closed, reopen it, or doesn't matter either way? |
Doesn't matter either way (open or closed) On Fri, Oct 16, 2015 at 2:45 PM, Rich Trott notifications@github.com
|
The existing test never ran because typeof Symbol === 'function' and not 'symbol'. We have Symbols now so remove the check and just run the test. PR-URL: #3327 Reviewed-By: James M Snell <jasnell@gmail.com>
The existing test never ran because typeof Symbol === 'function' and not 'symbol'. We have Symbols now so remove the check and just run the test. PR-URL: #3327 Reviewed-By: James M Snell <jasnell@gmail.com>
Landed in v4.x-staging in 6305d26 |
The existing test never ran because typeof Symbol === 'function' and not 'symbol'. We have Symbols now so remove the check and just run the test. PR-URL: #3327 Reviewed-By: James M Snell <jasnell@gmail.com>
The existing test never ran because typeof Symbol === 'function' and not
'symbol'. Update to Symbol() which will be a symbol and not a function.