| Index: pkg/code_transformers/test/entry_point_test.dart
|
| diff --git a/pkg/code_transformers/test/entry_point_test.dart b/pkg/code_transformers/test/entry_point_test.dart
|
| index 1000aceca62ec2c97e528938efd082f72c5060af..a3844445681574a58f9b5c2b3640ab89b889bc0e 100644
|
| --- a/pkg/code_transformers/test/entry_point_test.dart
|
| +++ b/pkg/code_transformers/test/entry_point_test.dart
|
| @@ -76,6 +76,22 @@ main() {
|
| },
|
| expectation: true);
|
| });
|
| +
|
| + test('is tolerant of syntax errors with main', () {
|
| + return checkDartEntry(
|
| + inputs: {
|
| + 'a|web/main.dart': 'main() {} {',
|
| + },
|
| + expectation: true);
|
| + });
|
| +
|
| + test('is tolerant of syntax errors without main', () {
|
| + return checkDartEntry(
|
| + inputs: {
|
| + 'a|web/main.dart': 'class Foo {',
|
| + },
|
| + expectation: false);
|
| + });
|
| });
|
| }
|
|
|
|
|