作者:JanStureNielse
项目:angula
function captureRules(input: string): CssRule[] {
const result: any[] /** TODO #9100 */ = [];
processRules(input, (cssRule: any /** TODO #9100 */) => {
result.push(cssRule);
return cssRule;
});
return result;
}
作者:0xJoK
项目:angula
function captureRules(input: string): CssRule[] {
var result = [];
processRules(input, (cssRule) => {
result.push(cssRule);
return cssRule;
});
return result;
}
作者:JanStureNielse
项目:angula
it('should allow to change the content', () => {
expect(processRules(
'a {b}', (cssRule: any /** TODO #9100 */) =>
new CssRule(cssRule.selector, cssRule.content + '2')))
.toEqual('a {b2}');
});