【发布时间】:2015-07-14 01:09:05
【问题描述】:
我用 CoffeeScript 写了这个:
expect (@controllerInstance[fn]).toHaveBeenCalled()
它被编译成这样:
return expect(this.controllerInstance[fn].toHaveBeenCalled());
为什么重新排列了方法调用括号?我如何让它编译成我想要的?
我需要看到的是:
expect(this.controllerInstance[fn]).toHaveBeenCalled()
【问题讨论】:
标签: coffeescript