【发布时间】:2016-11-08 00:32:55
【问题描述】:
我有以下简单的茉莉花测试...
//test.spec.ts
describe('Sample', function(){
it('Should do something', () => expect(true).toBe(true));
});
但是当我跑步时,我得到...
Error: 'expect' was used when there was no current spec, this could be because an asynchronous test timed out
这很好用……
describe('Sample', function(){
it('Should do something', function(){
expect(true).toBe(true);
});
});
【问题讨论】:
标签: typescript jasmine karma-jasmine