io_extension_test.dart 669 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
import 'package:flutter_driver/src/extension/_extension_io.dart';
6 7 8 9 10

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

void main() {
  group('test io_extension',() {
11
    late Future<Map<String, dynamic>> Function(Map<String, String>) call;
12 13 14 15 16 17 18 19

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

    test('io_extension should throw exception', () {
20
      expect(() => registerWebServiceExtension(call), throwsUnsupportedError);
21 22 23
    });
  });
}