Easily mock out require
d modules using Unexpected
and mock-require.
NOTE: This only works with modules that are required at run time!
expect(function () {
require('./some-module');
}, 'with require mocked out', {
'./some-module': {}
}, 'not to throw');