' : 'null'));
});
});
+ //TODO: assertions should be enabled when running tests: https://github.com/angular/angular/issues/1340
describe('component directives', () => {
it('should save the component id', () => {
var results = process(
@@ -179,7 +183,8 @@ export function main() {
process(
el('
')
);
- }).toThrowError('Only one component directive is allowed per element - check
');
+ }).toThrowError('Only one component directive is allowed per element - check '
+ + (assertionsEnabled() ? '
' : 'null'));
});
it('should not allow component directives on elements', () => {
@@ -187,7 +192,8 @@ export function main() {
process(
el('')
);
- }).toThrowError('Only template directives are allowed on template elements - check ');
+ }).toThrowError('Only template directives are allowed on template elements - check '
+ + (assertionsEnabled() ? '' : 'null'));
});
});