io_extension_test.dart 700 Bytes
Newer Older
1 2 3 4
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

5 6
// @dart = 2.8

7
import 'package:flutter_driver/src/extension/_extension_io.dart';
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22

import '../../common.dart';

void main() {
  group('test io_extension',() {
    Future<Map<String, dynamic>> Function(Map<String, String>) call;

    setUp(() {
      call = (Map<String, String> args) async {
        return Future<Map<String, dynamic>>.value(args);
      };
    });

    test('io_extension should throw exception', () {
      expect(() => registerWebServiceExtension(call),
Dan Field's avatar
Dan Field committed
23
          throwsA(isA<UnsupportedError>()));
24 25 26
    });
  });
}