fix(compiler): Allow components to use any style of selector. Fixes #1602

This commit is contained in:
Jeremy Elbourn
2015-07-28 11:38:40 -07:00
parent 4422819754
commit c20a5d65d8
6 changed files with 67 additions and 20 deletions

View File

@ -174,12 +174,6 @@ export function main() {
expect(results[0].componentId).toEqual('someComponent');
});
it('should throw when the provided selector is not an element selector', () => {
expect(() => { createPipeline(null, [componentWithNonElementSelector]); })
.toThrowError(
`Component 'componentWithNonElementSelector' can only have an element selector, but had '[attr]'`);
});
it('should not allow multiple component directives on the same element', () => {
expect(() => {
process(el('<some-comp></some-comp>'), null, [someComponent, someComponentDup]);