Skip to content

Commit

Permalink
fixed test properly after last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nosmirck committed Jun 22, 2020
1 parent f67b22e commit 22031d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/rx_command_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void main() {
// yield execution so the restriction emits before the command.canExecute is checked.
await Future.delayed(Duration.zero);

expect(command.canExecute, emits(false));
expect(command.canExecute, emits(true));
expect(command.isExecuting, emits(false));

command.execute();
Expand Down Expand Up @@ -327,6 +327,7 @@ void main() {

await Future.delayed(Duration(milliseconds: 100));

expect(command.isExecuting, emits(false));
expect(executionCount, 1);
});

Expand Down Expand Up @@ -372,6 +373,7 @@ void main() {

await Future.delayed(Duration(milliseconds: 50));

expect(command.isExecuting, emits(false));
expect(executionCount, 2);
});

Expand Down

0 comments on commit 22031d7

Please sign in to comment.