anchor.diff:          DevelopmentArtifact.androidGenSnapshot,
         }));
   
  -      when(mockDeviceManager.getDevices()).thenAnswer((Invocation invocation) {
  -        return Future<List<Device>>.value(<Device>[
  -          MockDevice(TargetPlatform.web_javascript),
  -        ]);
  -      });
  +      mockDeviceManager.devices = <Device>[
  +        FakeDevice(targetPlatform: TargetPlatform.web_javascript),
  +      ];
   
         expect(await RunCommand().requiredArtifacts, unorderedEquals(<DevelopmentArtifact>{
           DevelopmentArtifact.universal,
  
positive.code: 
  void main() {
    group('run', () {
      MockDeviceManager mockDeviceManager;
      FileSystem fileSystem;
  
      setUpAll(() {
  
negative.code:         DeviceManager: () => mockDeviceManager,
          FileSystem: () => fs,
          ProcessManager: () => FakeProcessManager.any(),
          Cache: () => Cache.test(processManager: FakeProcessManager.any()),
        });
  
        testUsingContext('passes device target platform to usage', () async {
          final RunCommand command = RunCommand();
          final FakeDevice mockDevice = FakeDevice(targetPlatform: TargetPlatform.ios, sdkNameAndVersion: 'iOS 13')
            ..startAppSuccess = false;
  
          mockDeviceManager
            ..devices = <Device>[
              mockDevice,
            ]
            ..targetDevices = <Device>[
              mockDevice,
            ];
  
          // Causes swift to be detected in the analytics.
          fs.currentDirectory.childDirectory('ios').childFile('AppDelegate.swift').createSync(recursive: true);
  
          await expectToolExitLater(createTestCommandRunner(command).run(<String>[
            'run',
  