Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexios80 committed Oct 11, 2024
1 parent d606ab9 commit 0442042
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/config_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ exclude:
},
},
);
final stdout = result.stdout;

// Since the code generation doesn't actually run the command should succeed
expect(result.exitCode, ExitCode.success.code);

expectLine(result, [path.join('puby_yaml_test'), 'Skip']);
expectLine(stdout, [path.join('puby_yaml_test'), 'Skip']);
});
});
}
2 changes: 1 addition & 1 deletion test/test_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Future<PubyProcessResult> testCommand(
);
}

void expectLine(dynamic stdout, List<String> matchers, {bool matches = true}) {
void expectLine(String stdout, List<String> matchers, {bool matches = true}) {
final lines = (stdout as String).split('\n');
expect(
lines.any(
Expand Down

0 comments on commit 0442042

Please sign in to comment.