Unverified Commit 673d56d1 authored by jslavitz's avatar jslavitz Committed by GitHub

Fix test template (#22982)

* added test
parent ba132392
import 'package:test/test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:{{projectName}}/{{projectName}}.dart';
......
......@@ -355,6 +355,10 @@ void main() {
expectExists('lib/main.dart');
expectExists('test/widget_test.dart');
final String actualContents = await fs.file(projectDir.path + '/test/widget_test.dart').readAsString();
expect(actualContents.contains('flutter_test.dart'), true);
for (FileSystemEntity file in projectDir.listSync(recursive: true)) {
if (file is File && file.path.endsWith('.dart')) {
final String original = file.readAsStringSync();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment