
committed by
Misko Hevery

parent
60800da6c1
commit
91bffa9c53
@ -94,7 +94,13 @@ describe('compiler compliance: styling', () => {
|
||||
}
|
||||
};
|
||||
|
||||
const template = 'div.cool { color: blue; }", ":host.nice p { color: gold; }';
|
||||
const template = `
|
||||
MyComponent.ngComponentDef = $r3$.ɵdefineComponent({
|
||||
…
|
||||
styles: ["div.cool { color: blue; }", ":host.nice p { color: gold; }"],
|
||||
encapsulation: 1
|
||||
})
|
||||
`;
|
||||
const result = compile(files, angularFiles);
|
||||
expectEmit(result.source, template, 'Incorrect template');
|
||||
});
|
||||
|
Reference in New Issue
Block a user