refactor(core): conditionally disable tests for the view engine.
This commit is contained in:
parent
7db93310f1
commit
90226f7714
@ -1380,6 +1380,9 @@ function declareTests({useJit, viewEngine}: {useJit: boolean, viewEngine: boolea
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO(tbosch): delete these tests once view engine is the default as we handle
|
||||||
|
// these errors via source maps!
|
||||||
|
if (!viewEngine) {
|
||||||
it('should specify a location of an error that happened during change detection (text)',
|
it('should specify a location of an error that happened during change detection (text)',
|
||||||
() => {
|
() => {
|
||||||
TestBed.configureTestingModule({declarations: [MyComp]});
|
TestBed.configureTestingModule({declarations: [MyComp]});
|
||||||
@ -1409,6 +1412,7 @@ function declareTests({useJit, viewEngine}: {useJit: boolean, viewEngine: boolea
|
|||||||
|
|
||||||
expect(() => fixture.detectChanges()).toThrowError(/:0:11/);
|
expect(() => fixture.detectChanges()).toThrowError(/:0:11/);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should support imperative views', () => {
|
it('should support imperative views', () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user