[go: nahoru, domu]

Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
Fix unit test for sensors (#2009)
Browse files Browse the repository at this point in the history
  • Loading branch information
collinjackson authored and mehmetf committed Aug 24, 2019
1 parent 6b5e01b commit e168ef5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/sensors/test/sensors_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ import 'dart:async';
import 'dart:typed_data';

import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart' show TestWidgetsFlutterBinding;
import 'package:sensors/sensors.dart';
import 'package:test/test.dart';

void main() {
TestWidgetsFlutterBinding.ensureInitialized();

test('$accelerometerEvents are streamed', () async {
const String channelName = 'plugins.flutter.io/sensors/accelerometer';
const List<double> sensorData = <double>[1.0, 2.0, 3.0];
Expand Down

0 comments on commit e168ef5

Please sign in to comment.