Tagged Questions
5
votes
1answer
815 views
4
votes
1answer
210 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 ...
3
votes
1answer
272 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 ...
1
vote
1answer
227 views
Is this factory method a good approach?
We are beginning to learn Node.js and we are not always sure if we do it the right way. We have a strong object oriented background so the adoption is not always easy. Right now we implemented a ...
1
vote
1answer
52 views
1
vote
1answer
27 views
Testing individual nodes launched by naught using supertest
The purpose: an express node.js server which can be launched using naught, with an integration test using supertest. Each worker naught runs will test itself on a unique port, and only if passes it ...