text: 'use strict';
  
  const {createTest} = require('@putout/test');
  const removeUselessAsync = require('.');
  
  const test = createTest(__dirname, {
      'remove-useless-async': removeUselessAsync,
  });
  
  test('plugin-remove-useless-async: report', (t) => {
      t.report('async', 'Avoid useless async');
      t.end();
  });
  
  test('plugin-remove-useless-async: transform', (t) => {
      t.transform('async');
      t.end();
  });
  
  test('plugin-remove-useless-async: transform: function', (t) => {
      t.transform('function');
      t.end();
  });
  
  test('plugin-remove-useless-async: transform: args', (t) => {
      t.transform('args');
      t.end();
  });
  
  test('plugin-remove-useless-async: transform: args fn', (t) => {
      t.transform('args-fn');
      t.end();
  });
  
  test('plugin-remove-useless-async: transform: generator', (t) => {
      t.transform('generator');
      t.end();
  });
  
  test('plugin-remove-useless-async: transform: export-default', (t) => {
      t.transform('export-default');
      t.end();
  });
  
  test('plugin-remove-useless-async: no transform: no body arrow', (t) => {
      t.noTransform('no-body-arrow');
      t.end();
  });
  
  test('plugin-remove-useless-async: no transform: throw', (t) => {
      t.noTransform('throw');
      t.end();
  });
  
  test('plugin-remove-useless-async: no transform: await', (t) => {
      t.noTransform('await');
      t.end();
  });
  
  test('plugin-remove-useless-async: no transform: for of', (t) => {
      t.noTransform('for-of');
      t.end();
  });
  
  test('plugin-remove-useless-async: no transform: for await of', (t) => {
      t.noTransform('for-await-of');
      t.end();
  });
  
  test('plugin-remove-useless-async: no transform: noop', (t) => {
      t.noTransformCode('const a = async () => {}');
      t.end();
  });
  
  