Closed jmbothe closed 7 years ago
@jmbothe Had the same issue with node 6.9.2, upgrading to 8.4.0. made the characterization tests work. After that I got a characterization error with the correct evaluation as expected.
Also loving the book so far! 🎉 💯
@b0rza thanks for the tip. Updating Node fixed everything and got me back on track. Much appreciated!
basic info: OS: Ubuntu 17.04 node: v6.11.2 npm: v5.3.0 mocha: v3.5.0 wish: v1.0.0
I'm going to say thanks in advance BEFORE unleashing a deluge of code here :) THANKS!
I am currently reading/working through the Refactoring Javascript book (and seriously learning/enjoying), but I've run into this issue, starting on page 56, where we first install
wish
and runnode check-hand.js
.I walked through the instructions leading up to this point twice, and got the same results. On the second try, I attempted
npm init -f
to setup a default package.json file (a step not mentioned in the book), but it didn't seem to make a difference.the code:
The expected output:
the output I actually get:
I walked through the entire
check-hand.js
tutorial and got this message for every single assertion.The other issue, on page 74, upon running
mocha random-hand.js
the code:
Expected output:
WishCharacterization: doIt() evaluated to undefined
Actual output:
I added the other characterization tests from page 74, and they output the same.