migrate empty exceptions to tool exit with error message (#79898)

This commit is contained in:
Christopher Fujino
2021-04-07 13:19:04 -07:00
committed by GitHub
parent 15b9b58e7c
commit 76bc462520
2 changed files with 7 additions and 9 deletions

View File

@@ -115,11 +115,10 @@ flutter:
projectDir: fileSystem.currentDirectory,
dependenciesDir: fileSystem.currentDirectory,
),
throwsA(isA<Exception>()),
);
expect(
logger.errorText,
contains('Attempted to generate localizations code without having the flutter: generate flag turned on.'),
throwsToolExit(
message: 'Attempted to generate localizations code without having the '
'flutter: generate flag turned on.',
),
);
});