1
vote
0answers
49 views

Does this nodeunit test conform to best practices?

I have inherited a node-js project, and I am completely new to it. Fortunately, it is already covered by unit tests. The class under test, FmsRescuers, has the responsibility of sending HTTP requests ...
2
votes
1answer
194 views

my constructor is doing work. Is this a code smell in this example?

I have created a queue in javascript. This queue also has blocking take(). As you all probably know this is not really true, because javascript does not have threads. It just wait until element has ...