fix(ngc): don't codegen foo.d.ngfactory.ts from foo.d.ts (#10833)

This commit is contained in:
Alex Eagle
2016-08-18 10:11:06 -07:00
committed by Kara
parent 292ccf882a
commit cd8cbd3762
4 changed files with 18 additions and 4 deletions

View File

@ -36,6 +36,12 @@ describe('template codegen output', () => {
expect(fs.readFileSync(dtsOutput, {encoding: 'utf-8'})).toContain('Basic');
});
it('should write .ngfactory.ts for .d.ts inputs', () => {
const factoryOutput =
path.join('node_modules', '@angular2-material', 'button', 'button.ngfactory.ts');
expect(fs.existsSync(factoryOutput)).toBeTruthy();
});
it('should be able to create the basic component', () => {
var compFixture = createComponent(BasicComp);
expect(compFixture.componentInstance).toBeTruthy();