fix(transformer): Fix string interpolation for bindings.
Previously it did not stringify properties and used `+` instead of ` `.
This commit is contained in:
@ -121,8 +121,8 @@ void _testNgDeps(String name, String inputPath,
|
||||
if (output == null) {
|
||||
expect(await reader.hasInput(expectedId)).toBeFalse();
|
||||
} else {
|
||||
expect(formatter.format(output))
|
||||
.toEqual((await reader.readAsString(expectedId)).replaceAll('\r\n', '\n'));
|
||||
expect(formatter.format(output)).toEqual(
|
||||
(await reader.readAsString(expectedId)).replaceAll('\r\n', '\n'));
|
||||
}
|
||||
|
||||
if (expectedLogs != null) {
|
||||
|
@ -1,13 +1,10 @@
|
||||
library test.transform.directive_processor.url_expression_files.hello;
|
||||
|
||||
import 'package:angular2/angular2.dart'
|
||||
show bootstrap, Component, Directive, View, NgElement;
|
||||
show bootstrap, Component, Directive, View, NgElement;
|
||||
|
||||
@Component(selector: 'hello-app')
|
||||
@View(
|
||||
templateUrl: '/bad/absolute/url.html',
|
||||
styleUrls: const [
|
||||
'package:invalid/package.css',
|
||||
'bad_relative_url.css'
|
||||
])
|
||||
styleUrls: const ['package:invalid/package.css', 'bad_relative_url.css'])
|
||||
class HelloCmp {}
|
||||
|
Reference in New Issue
Block a user