text: 'use strict';
  
  const {RuleTester} = require('eslint');
  
  const wrap = require('../wrap');
  const rule = wrap(require('.'));
  
  const ruleTester = new RuleTester({
      parserOptions: {
          ecmaVersion: 2019,
      },
  });
  
  ruleTester.run('keyword-spacing', rule, {
      valid: [`
          function hello({a, b, c}) {
          }
      `, `
          ({a, b, c}) => {
          }
      `, `
          ({a, b, c}) => {
              return x(
                  a,
                  b,
              );
          }
      `],
      
      invalid: [{
          code: `function hello(
              {a, b, c}
          ) {}`,
          output: `function hello({a, b, c}) {}`,
          errors: [{
              message: 'Unexpected new lines around arguments',
          }],
      }, {
          code: `(
              {a, b, c}
          ) => {}`,
          output: `({a, b, c}) => {}`,
          errors: [{
              message: 'Unexpected new lines around arguments',
          }],
      }, {
          code: `(
              {a, b, c},
          ) => {}`,
          output: `({a, b, c}) => {}`,
          errors: [{
              message: 'Unexpected new lines around arguments',
          }],
      }],
  });
  
  