Open huttarichard opened 8 years ago
I also tried something like this:
before(function() {
window.module('some.module');
inject(function(_$log_) {
console.log(_$log_) // never executed
})
})
this example not execute inject function, instead return workFn
which you must execute by yourself in correct context, otherwise give you something like cannot read property '$modules' of null
. Same problem same place, if you change before for beforeEach it will run properly
Hi there, great job, I don't know if this is more issue of angular mocks or meteor-mocha by I try to ask here:
Not working example:
you got an error
however if you change before to before each it will work properly
Working example:
What is this all about, is it just my misunderstanding of angular-mocks libary or is this bug within meteor-mocha package?