第二次提交
This commit is contained in:
@@ -5,26 +5,15 @@
|
||||
// gestures. You can also use WidgetTester to find child widgets in the widget
|
||||
// tree, read text, and verify that the values of widget properties are correct.
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
import 'package:maibu_satabot_v2/main.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
|
||||
// Build our app and trigger a frame.
|
||||
await tester.pumpWidget(const MyApp());
|
||||
|
||||
// Verify that our counter starts at 0.
|
||||
expect(find.text('0'), findsOneWidget);
|
||||
expect(find.text('1'), findsNothing);
|
||||
|
||||
// Tap the '+' icon and trigger a frame.
|
||||
await tester.tap(find.byIcon(Icons.add));
|
||||
await tester.pump();
|
||||
|
||||
// Verify that our counter has incremented.
|
||||
expect(find.text('0'), findsNothing);
|
||||
expect(find.text('1'), findsOneWidget);
|
||||
});
|
||||
// test('bind device with token', () async {
|
||||
// var dio = DioClient.create(
|
||||
// "eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjliODA0MjY3LWUzNTEtNDhiZC04OTk2LTQzYTBkMGM1ODIxMyJ9.ilt4o9m0ayf12nmA-qXwkL7m2H098ZH2EbBOULFS8-W5DUowT_iFEuI8RIEt-oqrik7jPcwfNtFcqBJkoYKRxg",
|
||||
// );
|
||||
// DeviceHttpDatasource deviceHttpDatasource = DeviceHttpDatasourceImpl(dio);
|
||||
// await deviceHttpDatasource.bindDevice(
|
||||
// "MC700PLUS-CN-JS-1760408682847-0000002A-A99999",
|
||||
// "CC的小机器",
|
||||
// );
|
||||
// });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user