senecajs / senecajs.org

Documentation site for Seneca.js
MIT License
28 stars 52 forks source link

unit test color example seems not to be working #315

Open telekosmos opened 6 years ago

telekosmos commented 6 years ago

Hi I dunno wheter or not this is the repo for this issue or seneca repo itself...

Well actually I was trying to setup unit tests based on the example in the unit testing documentation for a personal project . So, I've replicated the color example files at https://github.com/senecajs/senecajs.org/tree/master/code/unit-testing but I noticed the tests are doing (almost) nothing as if you replace expect(result.hex).to.equal('000000') for expect(result.hex).to.equal('000001') in file test/color-test.js, the test still passes. It seems the callback function in actions is not called (console.logs inside never get printed out).

Any hint about this issue??? Thanks!!!