blob: 2d92b6ad6dee5d5e5c687304a84d20fc4efc691c [file] [log] [blame]
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:analysis_server/protocol/protocol_generated.dart';
import 'package:test/test.dart';
import 'package:test_reflective_loader/test_reflective_loader.dart';
import '../support/integration_tests.dart';
main() {
defineReflectiveSuite(() {
class GetDartfixInfoTest extends AbstractAnalysisServerIntegrationTest {
test_getDartfixInfo() async {
EditGetDartfixInfoResult info = await sendEditGetDartfixInfo();
expect(info.fixes.length, greaterThanOrEqualTo(3));
var fix = info.fixes.firstWhere((f) => == 'use-mixin');
expect(fix.isRequired, isTrue);