Skip to content

Commit 0942552

Browse files
committed
Remove null safety code in template
1 parent bf7bb4f commit 0942552

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

lib/src/templates/new_project.g.dart

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/new_project/lib/src/todo_list/todo_list_component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- Components info: https://angulardart.dev/components -->
1+
<!-- Components info: https://angulardart.xyz/components -->
22
<div>
33
<material-input label="What do you need to do?"
44
autoFocus floatingLabel style="width:80%"

templates/new_project/test/app_test.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ import 'package:test/test.dart';
44
import 'package:__projectName__/app_component.dart';
55
import 'package:__projectName__/app_component.template.dart' as ng;
66

7+
// Testing info: https://angulardart.xyz/guide/testing
8+
79
void main() {
8-
late final testBed =
9-
NgTestBed.forComponent<AppComponent>(ng.AppComponentNgFactory);
10+
final testBed = NgTestBed<AppComponent>(ng.AppComponentNgFactory);
1011
NgTestFixture<AppComponent> fixture;
1112

1213
setUp(() async {
@@ -18,6 +19,4 @@ void main() {
1819
test('heading', () {
1920
expect(fixture.text, contains('My First AngularDart App'));
2021
});
21-
22-
// Testing info: https://angulardart.dev/guide/testing
2322
}

0 commit comments

Comments
 (0)