updateAndCommitSampleFile function
Update and commit sample file
Implementation
Future<File> updateAndCommitSampleFile(
Directory testDir, {
String message = 'Commit Message',
String fileName = sampleFileName,
bool ammend = false,
}) async {
final file = await updateSampleFileWithoutCommitting(
testDir,
fileName: fileName,
);
await commitFile(testDir, fileName, message: message, ammend: ammend);
return file;
}