Angular2和Karma问题

时间:2015-12-28 00:52:55

标签: karma-jasmine angular

我遇到测试问题 - 当运行多个测试时,其中一个测试失败,但是当我隔离它们并且当时运行一个测试时,它们都会通过。测试是基本的占位符(我正在研究种子项目),通常看起来像这样:

for loop

当我在任何测试中将import {inject, injectAsync, TestComponentBuilder, beforeEachProviders} from 'angular2/testing' import {describe, ddescribe, it, iit, expect} from 'angular2/testing' import {provide} from 'angular2/core' import {PeopleComponent} from './people.component' describe('PeopleComponent', () => { beforeEachProviders(() => []); it('should ...', injectAsync([TestComponentBuilder], (tcb: TestComponentBuilder) => { return tcb.createAsync(PeopleComponent).then((fixture) => { fixture.detectChanges(); }); })); }); 更改为describe时,它们都会通过。我无法弄清楚为什么。有什么想法吗?

完整错误跟踪如下:

ddescribe

0 个答案:

没有答案