diff --git a/test/config_test.dart b/test/config_test.dart index 90a85ef..82280bc 100644 --- a/test/config_test.dart +++ b/test/config_test.dart @@ -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']); }); }); } diff --git a/test/test_utils.dart b/test/test_utils.dart index 365dd8f..032dc9e 100644 --- a/test/test_utils.dart +++ b/test/test_utils.dart @@ -55,7 +55,7 @@ Future testCommand( ); } -void expectLine(dynamic stdout, List matchers, {bool matches = true}) { +void expectLine(String stdout, List matchers, {bool matches = true}) { final lines = (stdout as String).split('\n'); expect( lines.any(