test(ivy): ngcc - remove unnecessary code (#25445)

PR Close #25445
This commit is contained in:
Pete Bacon Darwin 2019-04-28 20:48:34 +01:00 committed by Jason Aden
parent 0fa72a8bc8
commit 37f69eddc7

View File

@ -281,7 +281,7 @@ SOME DEFINITION TEXT
}); });
it('should error if the compiledClass is not valid', () => { it('should error if the compiledClass is not valid', () => {
const {renderer, host, sourceFile, program} = setup(PROGRAM); const {renderer, sourceFile, program} = setup(PROGRAM);
const output = new MagicString(PROGRAM.contents); const output = new MagicString(PROGRAM.contents);
const noIifeDeclaration = const noIifeDeclaration =
@ -355,9 +355,7 @@ SOME DEFINITION TEXT
expect(output.toString()).toContain(`{ type: Directive, args: [{ selector: '[b]' }] }`); expect(output.toString()).toContain(`{ type: Directive, args: [{ selector: '[b]' }] }`);
expect(output.toString()).toContain(`{ type: OtherB }`); expect(output.toString()).toContain(`{ type: OtherB }`);
expect(output.toString()).toContain(`function C() {}\nSOME DEFINITION TEXT\n return C;`); expect(output.toString()).toContain(`function C() {}\nSOME DEFINITION TEXT\n return C;`);
expect(output.toString()).not.toContain(`C.decorators = [ expect(output.toString()).not.toContain(`C.decorators`);
{ type: Directive, args: [{ selector: '[c]' }] },
];`);
}); });
}); });