1
0
mirror of https://github.com/flutter/samples.git synced 2026-04-01 09:13:23 +00:00

[federated_plugin_sample] Initial commit (#497)

This commit is contained in:
Ayush Bherwani
2020-07-21 06:25:55 +05:30
committed by GitHub
parent 86fd809f72
commit 32d04ba635
85 changed files with 2043 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
// Copyright 2020 The Flutter team. 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:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:federated_plugin/federated_plugin.dart';
void main() {
const channel = MethodChannel('federated_plugin');
TestWidgetsFlutterBinding.ensureInitialized();
setUp(() {
channel.setMockMethodCallHandler((methodCall) async {
return '42';
});
});
tearDown(() {
channel.setMockMethodCallHandler(null);
});
test('getPlatformVersion', () async {
expect(await FederatedPlugin.platformVersion, '42');
});
}