Closed tpai closed 8 years ago
@Geczy yes, it absolutely is, and has always done so with its use of arrow functions in class fields.
The babel transform exists because the spec allows for functions in fields (because it'd be weird for it not to permit it) and the transform has to follow the spec. That's utterly irrelevant to whether you should use certain patterns.
I'm now using class properties feature on component method, but the spy seems not work.
The component like this:
Test code here:
The result is
spy was not called
, is that class properties issue or just I wrote wrongly?