anchor.diff:      await runner.run(<String>['create', '--no-pub', projectDir.path]);
   
       final String metadata = globals.fs.file(globals.fs.path.join(projectDir.path, '.metadata')).readAsStringSync();
  -    expect(metadata, contains('project_type: app\n'));
  +    expect(LineSplitter.split(metadata), contains('project_type: app'));
     });
   
     testUsingContext('can re-gen app template over existing app project and detect the type', () async {
  
positive.code:     await runner.run(<String>['create', '--no-pub', projectDir.path]);
  
      final String metadata = globals.fs.file(globals.fs.path.join(projectDir.path, '.metadata')).readAsStringSync();
      expect(metadata, contains('project_type: module\n'));
    });
  
    testUsingContext('can re-gen default template over existing plugin project and detect the type', () async {
  
negative.code:     await runner.run(<String>['create', '--no-pub', projectDir.path]);
  
      final String metadata = globals.fs.file(globals.fs.path.join(projectDir.path, '.metadata')).readAsStringSync();
      expect(LineSplitter.split(metadata), contains('project_type: plugin'));
    });
  
    testUsingContext('can re-gen default template over existing package project and detect the type', () async {
  