lundi 7 septembre 2015

HowTo test module export branch?

I have in my server/config/environment/index.coffee such code:

module.exports = _.merge(all, require('./' + process.env.NODE_ENV + '.js') or {})

How would you test the || {} branch?

Aucun commentaire:

Enregistrer un commentaire