调用似乎有效,moduleFor
但是."util:transforms"
.subject
undefined
到目前为止我得到的测试文件是:
import { test, moduleFor } from 'ember-qunit';
import TransformUtil from 'myapp/utils/transforms';
moduleFor('util:transforms', "Unit - TransformUtil");
test("Exists", function(){
expect(1);
ok(this.subject() instanceof TransformUtil);
});
对其他类型的模块做同样的事情,例如"routes:index"
,似乎没有问题;该app/utils
文件夹似乎受到不同的对待。