old_contents: /* @flow */
  const jsdiff = require('diff');
  require('colors');
  
  export default function logDiff(label: string, a: string, b: string) {
    const { write } = process.stdout;
    const diff = jsdiff.diffChars(a, b);
    // $FlowFixMe
    write(`${label['yellow']}\n`);
    diff.forEach(({ added, removed, value }) => {
      const color = added ? 'green' : removed ? 'red' : 'grey';
      write(value[color]);
    });
    write('\n\n');
  }
  
new_contents: /* @flow */
  const jsdiff = require('diff');
  require('colors');
  
  export default function logDiff(label: any, a: string, b: string) {
    const diff = jsdiff.diffChars(a, b);
    process.stdout.write(`${label['yellow']}\n`);
    diff.forEach(({ added, removed, value }) => {
      const color = added ? 'green' : removed ? 'red' : 'grey';
      process.stdout.write(value[color]);
    });
    process.stdout.write('\n\n');
  }
  
subject: Fix console warning when running tests