Skip to content

Commit

Permalink
Update app_test.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
nickyrabit committed May 30, 2023
1 parent bc3ea40 commit c4c1785
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions integration_test/app_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,9 @@ import 'package:flutter_test/flutter_test.dart';

import 'package:dynamic_navigation_drawer/main.dart' as app;

void main() => _testMain();
void main() => _testMain(); // Changed this line

void _testMain() {
setUp(() {
// Mock the counter behavior by overriding the actual increment logic.
app.Counter.increment = () {};
});

testWidgets('Counter increments smoke test', (WidgetTester tester) async {
// Build our app and trigger a frame.
app.main();
Expand Down

0 comments on commit c4c1785

Please sign in to comment.