fix(testing): correctly import NgMatchers (#10077)
Some test cases incorrectly rely on the side effect of other test cases importing `NgMatchers`. This commit fixes this by making `expect` in `core/testing_internal` properly typed.
This commit is contained in:

committed by
Victor Berchet

parent
bdb59129d0
commit
64fc4648b7
@ -25,7 +25,7 @@ export var proxy: ClassDecorator = (t: any /** TODO #9100 */) => t;
|
||||
var _global = <any>(typeof window === 'undefined' ? global : window);
|
||||
|
||||
export var afterEach: Function = _global.afterEach;
|
||||
export var expect: Function = _global.expect;
|
||||
export var expect: (actual: any) => jasmine.Matchers = _global.expect;
|
||||
|
||||
var jsmBeforeEach = _global.beforeEach;
|
||||
var jsmDescribe = _global.describe;
|
||||
|
Reference in New Issue
Block a user