createJsonTest method

void createJsonTest(
  1. String pathTestPage,
  2. String featureName,
  3. String pageName,
  4. String apiName,
  5. String jsonResponse,
)

Implementation

void createJsonTest(
  String pathTestPage,
  String featureName,
  String pageName,
  String apiName,
  String jsonResponse,
) {
  final path = join(pathTestPage, 'json');

  DirectoryHelper.createDir(path, recursive: true);
  join(path, '${apiName.snakeCase}_success.json').write(jsonResponse);

  StatusHelper.generated(join(path, '${apiName.snakeCase}_success.json'));
}