feat: define all zone.js configurations to typescript interfaces (#35329)

PR Close #35329
This commit is contained in:
JiaLiPassion
2020-02-11 05:10:33 +09:00
committed by atscott
parent b7519e5cfa
commit 03d88c7965
3 changed files with 750 additions and 0 deletions

View File

@ -42,6 +42,10 @@ describe('Zone.js npm_package', () => {
it('should have an zone.api.extensions.ts file',
() => { expect(shx.cat('zone.api.extensions.ts')).toContain('EventTarget'); });
it('should have an zone.configurations.api.ts file', () => {
expect(shx.cat('zone.configurations.api.ts')).toContain('ZoneGlobalConfigurations');
});
});
describe('closure', () => {
@ -140,6 +144,7 @@ describe('Zone.js npm_package', () => {
'zone.js',
'zone.js.d.ts',
'zone.api.extensions.ts',
'zone.configurations.api.ts',
'zone.min.js',
].sort();
expect(list.length).toBe(expected.length);