-
Notifications
You must be signed in to change notification settings - Fork 452
fix the issue 890 which throw exception Cannot destructure property '… #901
Conversation
…message' of 'tracker.fetch(...)' as it is null
Thank you for contributing. We will need a test that fails as described in #890 without this change. My intention is to write an issue specific test that uses |
I am not very understanding, this is a very explicit syntax error. |
We need to include a unit test that covers the issue in order to guard against regression. I have provided guidance on how I intend to approach the test. I can provide further guidance if you have specific questions, or you can wait until I have time to get to it myself. |
Hi Jsumners, Please help. |
test/issue-890.test.js
Outdated
}) | ||
}) | ||
|
||
tap.test('tracker.fetch', t => { |
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.
We can set a timeout for the test like tap.test('handle null messages', { timeout: 2000 }, t => {
. Then use a lower setTimeout
in the server to delay the response past the time the connecting client would expect it.
At least, that's my idea for how to write this test.
…message' of 'tracker.fetch(...)' as it is null