Skip to content

Commit

Permalink
Formatowanie w testach
Browse files Browse the repository at this point in the history
  • Loading branch information
WezSieTato committed Dec 29, 2024
1 parent 0d65432 commit fb0d516
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/scan_bloc_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ void main() {
],
);

blocTest(
blocTest(
'emits close remote button should remove button',
build: () => _scanBloc(),
act: (bloc) {
act: (bloc) {
bloc.add(ScanEvent.barcodeScanned("button1"));
bloc.add(ScanEvent.closeRemoteButton());
},
Expand All @@ -76,10 +76,10 @@ void main() {
],
);

blocTest(
blocTest(
'emits close remote button should block appearing remote button',
build: () => _scanBloc(),
act: (bloc) {
act: (bloc) {
bloc.add(ScanEvent.barcodeScanned("button1"));
bloc.add(ScanEvent.closeRemoteButton());
bloc.add(ScanEvent.barcodeScanned("button2"));
Expand All @@ -95,16 +95,16 @@ void main() {
isLoading: false,
remoteButtonState: null,
wasRemoteButtonClosed: true),
ScanState(
ScanState(
list: [_testSearchResultWithButton("button1")],
isLoading: true,
remoteButtonState: null,
wasRemoteButtonClosed: true),
ScanState(
list: [
_testSearchResultWithButton("button1"),
_testSearchResultWithButton("button2")
],
_testSearchResultWithButton("button2")
],
isLoading: false,
remoteButtonState: null,
wasRemoteButtonClosed: true),
Expand Down

0 comments on commit fb0d516

Please sign in to comment.