I want to test my javascript in a dependency injection manner, e.g.
_ = require('lodash')
describe('lodash should work', ....)
Is there anyway that I can use commonjs's module require in Konacha?
I know //= require can load file, but how do I assign the loaded file/method to a variable?
Cheers
I want to test my javascript in a dependency injection manner, e.g.
Is there anyway that I can use commonjs's module require in Konacha? I know
//= require
can load file, but how do I assign the loaded file/method to a variable? Cheers