old_contents: import assert from 'yeoman-assert';
  import helpers from 'yeoman-test';
  import path from 'path';
  
  describe('Generator', () => {
    beforeEach(() =>
      helpers.run(path.join(__dirname, '../app')).inTmpDir().withPrompts({
        moduleName: 'bunny module',
        description: 'as cute as bunny',
        githubUsername: 'bunny',
        website: 'www.wewww.com',
        name: 'yo',
        email: 'hi@bunny.io',
      })
    );
  
    it('can be required without throwing', () => {
      const app = require('./'); // eslint-disable-line
      assert(app);
    });
  
    // TODO write test for this case
    it('checks for updates', () => {});
  
    it('generates files', () => {
      assert.file([
        '.all-contributorsrc',
        '.babelrc',
        '.editorconfig',
        '.eslintignore',
        '.eslintrc.json',
        '.flowconfig',
        '.gitattributes',
        '.gitignore',
        '.npmrc',
        '.travis.yml',
        'changelog.md',
        'contributing.md',
        'license',
        'package-scripts.js',
        'package.json',
        'readme.md',
        'src/index.js',
        'src/index.test.js',
      ]);
    });
  
    describe('templating', () => {
      it('fills package.json with correct informations', () => {
        assert.JSONFileContent('package.json', {
          name: 'bunny-module',
          description: 'as cute as bunny',
          author: 'yo <hi@bunny.io>',
          repository: {
            type: 'git',
            url: 'git+https://github.com/bunny/bunny-module.git',
          },
          homepage: 'https://github.com/bunny/bunny-module#readme',
          bugs: 'https://github.com/bunny/bunny-module/issues',
        });
      });
  
      it('writes installation instructions', () => {
        assert.fileContent('readme.md', 'npm install --save bunny-module');
        assert.fileContent('readme.md', 'yarn add bunny-module');
      });
    });
  });
  
new_contents: import assert from 'yeoman-assert';
  import helpers from 'yeoman-test';
  import path from 'path';
  
  describe('Generator', () => {
    beforeEach(() =>
      helpers.run(path.join(__dirname, '../app')).inTmpDir().withPrompts({
        moduleName: 'bunny module',
        description: 'as cute as bunny',
        githubUsername: 'bunny',
        website: 'www.wewww.com',
        name: 'yo',
        email: 'hi@bunny.io',
      })
    );
  
    it('can be required without throwing', () => {
      const app = require('./'); // eslint-disable-line
      assert(app);
    });
  
    it('generates files', () => {
      assert.file([
        '.all-contributorsrc',
        '.babelrc',
        '.editorconfig',
        '.eslintignore',
        '.eslintrc.json',
        '.flowconfig',
        '.gitattributes',
        '.gitignore',
        '.npmrc',
        '.travis.yml',
        'changelog.md',
        'contributing.md',
        'license',
        'package-scripts.js',
        'package.json',
        'readme.md',
        'src/index.js',
        'src/index.test.js',
      ]);
    });
  
    describe('templating', () => {
      it('fills package.json with correct informations', () => {
        assert.JSONFileContent('package.json', {
          name: 'bunny-module',
          description: 'as cute as bunny',
          author: 'yo <hi@bunny.io>',
          repository: {
            type: 'git',
            url: 'git+https://github.com/bunny/bunny-module.git',
          },
          homepage: 'https://github.com/bunny/bunny-module#readme',
          bugs: 'https://github.com/bunny/bunny-module/issues',
        });
      });
  
      it('writes installation instructions', () => {
        assert.fileContent('readme.md', 'npm install --save bunny-module');
        assert.fileContent('readme.md', 'yarn add bunny-module');
      });
    });
  });
  
subject: remove empty test