Sinon assert vs Chai assert

Main idea One day I was covering my code with tests and take note that Sinon also has an assertion as Chai has. I investigated it a little deeper and looked like it makes sense to use Sinon instead of Chai in some cases. Implementation The example of the test is based on class which... » read more

Mocha: Setup Debug for PHPstorm+NodeJS

I like to debug PHP code with PHPStrom. It simply click "Debug Icon" and debugging process automatically catch all scripts running from console or browser and no other manipulation needed. NodeJS has another debug approach and it different from PHP, also, it is much complicated. You should setup debugging for every a file or a... » read more