Skip to content

Commit

Permalink
Remove null safety code in template
Browse files Browse the repository at this point in the history
  • Loading branch information
GZGavinZhao committed Dec 25, 2021
1 parent bf7bb4f commit 0942552
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
18 changes: 9 additions & 9 deletions lib/src/templates/new_project.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- Components info: https://angulardart.dev/components -->
<!-- Components info: https://angulardart.xyz/components -->
<div>
<material-input label="What do you need to do?"
autoFocus floatingLabel style="width:80%"
Expand Down
7 changes: 3 additions & 4 deletions templates/new_project/test/app_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import 'package:test/test.dart';
import 'package:__projectName__/app_component.dart';
import 'package:__projectName__/app_component.template.dart' as ng;

// Testing info: https://angulardart.xyz/guide/testing

void main() {
late final testBed =
NgTestBed.forComponent<AppComponent>(ng.AppComponentNgFactory);
final testBed = NgTestBed<AppComponent>(ng.AppComponentNgFactory);
NgTestFixture<AppComponent> fixture;

setUp(() async {
Expand All @@ -18,6 +19,4 @@ void main() {
test('heading', () {
expect(fixture.text, contains('My First AngularDart App'));
});

// Testing info: https://angulardart.dev/guide/testing
}

0 comments on commit 0942552

Please sign in to comment.