I've node App with module with several functions inside and I want to test all the functions inside this module, the problem is that some of them are "private" since I dont export them in the module export command,my question is if it possible to test them? or I should add them to the exports object in order to test them.
I use mocha.
for example this is my code
it('Should update env',
function (done) {
var inst = onsr.updatePorts("'[{key:501,key:501}]'", 'key', 10);
inst.should.equal('[{key:501,key:10}]');
done();
})
Here its working since I put the update updatePorts
which Is "private" in the module exports but I want to avoid it somehow ...