Skip to content

Commit

Permalink
setup ble mock
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 committed Jun 5, 2024
1 parent 5790cf8 commit b4a8f50
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/Frontend/utils_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'package:tail_app/constants.dart';
import 'package:test/test.dart';

// Annotation which generates the cat.mocks.dart library and the MockCat class.
@GenerateNiceMocks([MockSpec<LocalPlatform>(), MockSpec<BuildContext>(), MockSpec<Theme>(), MockSpec<ColorScheme>()])
@GenerateNiceMocks([MockSpec<LocalPlatform>(), MockSpec<BuildContext>()])
import 'utils_test.mocks.dart';

void main() {
Expand Down
11 changes: 11 additions & 0 deletions test/testing_utils/bluetooth_test_utils.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import 'package:mockito/annotations.dart';
import 'package:tail_app/Backend/Bluetooth/bluetooth_manager_plus.dart';
import 'package:tail_app/Backend/Bluetooth/bluetooth_utils.dart';

// Annotation which generates the cat.mocks.dart library and the MockCat class.
@GenerateNiceMocks([MockSpec<FlutterBluePlusMockable>()])
import 'bluetooth_test_utils.mocks.dart';

void setupBTMock() {
flutterBluePlus = MockFlutterBluePlusMockable();
}

0 comments on commit b4a8f50

Please sign in to comment.