Skip to content

Commit

Permalink
fix: ensure verbose is mocked for mockParams
Browse files Browse the repository at this point in the history
  • Loading branch information
gkc committed Dec 4, 2023
1 parent b1b0366 commit 1e4f2da
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ void main() {
setUp(() {
mockAtClient = MockAtClient();
mockParams = MockSshnpParams();
when(() => mockParams.verbose).thenReturn(false);
sessionId = Uuid().v4();
notificationStreamController = StreamController();
notifyStub = NotifyStub();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ void main() {
notificationStreamController = StreamController();
subscribeStub = SubscribeStub();

when(() => mockParams.verbose).thenReturn(false);
when(() => mockParams.device).thenReturn(device);
namespace = '$device.sshnp';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ void main() {
notificationStreamController = StreamController();
subscribeStub = SubscribeStub();

when(() => mockParams.verbose).thenReturn(false);
when(() => mockParams.device).thenReturn(device);
namespace = '$device.sshnp';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ void main() {
notifyStub = NotifyStub();
subscribeStub = SubscribeStub();
mockParams = MockSshnpParams();
when(() => mockParams.verbose).thenReturn(false);
sessionId = Uuid().v4();
mockSshrv = MockSshrv();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'package:mocktail/mocktail.dart';
import 'package:noports_core/sshnp_foundation.dart';
import 'package:socket_connector/socket_connector.dart';
import 'package:test/test.dart';
Expand All @@ -14,6 +15,7 @@ void main() {
setUp(() {
mockAtClient = MockAtClient();
mockSshnpParams = MockSshnpParams();
when(() => mockSshnpParams.verbose).thenReturn(false);
sessionId = Uuid().v4();
});
test('public API', () {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'package:mocktail/mocktail.dart';
import 'package:noports_core/src/common/io_types.dart';
import 'package:noports_core/sshnp_foundation.dart';
import 'package:test/test.dart';
Expand All @@ -14,6 +15,8 @@ void main() {
setUp(() {
mockAtClient = MockAtClient();
mockSshnpParams = MockSshnpParams();
when(() => mockSshnpParams.verbose).thenReturn(false);

sessionId = Uuid().v4();
});
test('public API', () {
Expand Down

0 comments on commit 1e4f2da

Please sign in to comment.