You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
First of all, I'm using 6to5 instead of traceur and mocha/chai/sinon instead of karma/jasmine. (and yeah, I ported the tests)
Flame war apart, the tests shouldn't fail. Which doesn't, unless it is minified. (And I didn't bother trying with minified traceur output...)
I pinpointed the issue to the class' context being somehow set to undefined in the minified form. So things like this.list fails because this is undefined.
I'm not clear where the issue actually is. I'm 99% certain that it isn't the testing framework. #93 doesn't fix it either. I'm left with this babel/babel#343, a bug on uglify or on the di framework itself. (or some combination of them)
My work around is something like this:
instead of writing this:
classUserList{}classUserController{constructor(list){this.list=list}}// add a factory around a class :/annotate(UserFactory,newInject(UserList))functionUserFactory(list){returnnewUserController(list)}