File tree 2 files changed +13
-3
lines changed
test/commands.shard/permeable
2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -434,7 +434,7 @@ class CreateCommand extends CreateBase {
434
434
globals.printStatus ('Wrote $generatedFileCount files.' );
435
435
globals.printStatus ('\n All done!' );
436
436
final String application =
437
- '${emptyArgument ? 'empty' : '' }${sampleCode != null ? 'sample' : '' } application' ;
437
+ '${emptyArgument ? 'empty ' : '' }${sampleCode != null ? 'sample ' : '' }application' ;
438
438
if (generatePackage) {
439
439
final String relativeMainPath = globals.fs.path.normalize (globals.fs.path.join (
440
440
relativeDirPath,
@@ -476,6 +476,10 @@ class CreateCommand extends CreateBase {
476
476
477
477
// Let them know a summary of the state of their tooling.
478
478
globals.printStatus ('''
479
+ You can find general documentation for Flutter at: https://docs.flutter.dev/
480
+ Detailed API documentation is available at: https://api.flutter.dev/
481
+ If you prefer video documentation, consider: https://www.youtube.com/c/flutterdev
482
+
479
483
In order to run your $application , type:
480
484
481
485
\$ cd $relativeAppPath
Original file line number Diff line number Diff line change @@ -164,17 +164,23 @@ void main() {
164
164
'lib/main.dart' ,
165
165
],
166
166
);
167
+ expect (logger.statusText, contains ('In order to run your application, type:' ));
168
+ // check that we're telling them about documentation
169
+ expect (logger.statusText, contains ('https://docs.flutter.dev/' ));
170
+ expect (logger.statusText, contains ('https://api.flutter.dev/' ));
171
+ // check that the tests run clean
167
172
return _runFlutterTest (projectDir);
168
173
}, overrides: < Type , Generator > {
169
174
Pub : () => Pub (
170
175
fileSystem: globals.fs,
171
- logger: globals. logger,
176
+ logger: logger,
172
177
processManager: globals.processManager,
173
178
usage: globals.flutterUsage,
174
179
botDetector: globals.botDetector,
175
180
platform: globals.platform,
176
181
stdio: mockStdio,
177
182
),
183
+ Logger : () => logger,
178
184
});
179
185
180
186
testUsingContext ('can create a skeleton (list/detail) app' , () async {
@@ -597,7 +603,7 @@ void main() {
597
603
platform: globals.platform,
598
604
stdio: mockStdio,
599
605
),
600
- Logger : ()=> logger,
606
+ Logger : () => logger,
601
607
});
602
608
603
609
testUsingContext ('plugin example app depends on plugin' , () async {
You can’t perform that action at this time.
0 commit comments