TS Lint关于因果茉莉的问题

时间:2018-10-31 11:04:26

标签: unit-testing angular6 karma-jasmine tslint

我有一个测试文件(业力茉莉花)。内部描述函数有290多个行,抛出TS lint错误。有什么方法可以创建两个共享相同的beforeDeach()的Describe?

describe('test', () => {
   beforeEach(async(() => {
      //some code
   }));    
   beforeEach(() => {
    fixture = TestBed.createComponent(test);
    component = fixture.componentInstance;
    fixture.detectChanges();
   });    
   //Following by test cases
});

0 个答案:

没有答案