I'm pretty new in the javascript testing world and I'm having problems implementing some in my hottowel application. Most of the examples that I found online don't go as far as testing amd/require and the ones about amd/require don't show some other stuff.
I'm trying to test my vm by passing a mock service, let's say...
viewModel:
define(['services/dataService'], function (dataService) { function activate() { dataService.returnSomething(); } });
Can someone point me in the right direction (ideally a concrete example) on how to achieve this? Any test framework and mock library is ok.
Thanks