How to use the yeoman-generator.test.assertFileContent function in yeoman-generator

To help you get started, we’ve selected a few yeoman-generator examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Esri / generator-esri-appbuilder-js / test / test-theme.js View on Github external
it('should set themeName in manifest.json ', function() {
          helpers.assertFileContent('themes/Testtheme/manifest.json', /"name": "Testtheme"/g);
        });
github colindresj / generator-ractive / test / test-creation.js View on Github external
ractive.run({}, function () {
        helpers.assertFileContent('Gruntfile.js', /requirejs/i);
        helpers.assertFileContent('bower.json', /requirejs/i);

        done();
      })
    });
github heynemann / generator-python-package / test / test-creation.js View on Github external
this.app.run({}, function () {
      helpers.assertFileContent('Makefile', /list:/);
      helpers.assertFileContent('Makefile', /no_targets__:/);
      helpers.assertFileContent('Makefile', /setup:/);
      helpers.assertFileContent('Makefile', /test:/);
      helpers.assertFileContent('Makefile', /unit:/);
      helpers.assertFileContent('Makefile', /redis:/);
      helpers.assertFileContent('Makefile', /kill_redis:/);
      helpers.assertFileContent('Makefile', /redis_test:/);
      helpers.assertFileContent('Makefile', /kill_redis_test:/);
      helpers.assertFileContent('Makefile', /mongo:/);
      helpers.assertFileContent('Makefile', /kill_mongo:/);
      helpers.assertFileContent('Makefile', /clear_mongo:/);
      helpers.assertFileContent('Makefile', /mongo_test:/);
      helpers.assertFileContent('Makefile', /kill_mongo_test:/);
      helpers.assertFileContent('Makefile', /tox:/);
      done();
    });
  });
github heynemann / generator-python-package / test / test-creation.js View on Github external
this.app.run({}, function () {
      helpers.assertFileContent('setup.py', /from test_package import __version__/);
      helpers.assertFileContent('setup.py', /name='test-package',/);
      helpers.assertFileContent('setup.py', /    version=__version__,/);
      helpers.assertFileContent('setup.py', /    description='an incredible python package',/);
      helpers.assertFileContent('setup.py', /\nan incredible python package\n/);
      helpers.assertFileContent('setup.py', /    keywords='test package',/);
      helpers.assertFileContent('setup.py', /    author='Pablo Santiago Blum de Aguiar',/);
      helpers.assertFileContent('setup.py', /    author_email='scorphus@gmail.com',/);
      helpers.assertFileContent('setup.py', /    url='https:\/\/github.com\/someuser\/somepackage',/);
      helpers.assertFileContent('setup.py', /    license='MIT',/);
      helpers.assertFileContent('setup.py', /        'Programming Language :: Python :: 2.7',/);
      helpers.assertFileContent('setup.py', /    include_package_data=False,/);
      helpers.assertFileContent('setup.py', /        'pymongo',/);
      helpers.assertFileContent('setup.py', /        'redis',/);
      done();
    });
  });
github heynemann / generator-python-package / test / test-creation.js View on Github external
this.app.run({}, function () {
      helpers.assertFileContent('Makefile', /list:/);
      helpers.assertFileContent('Makefile', /no_targets__:/);
      helpers.assertFileContent('Makefile', /setup:/);
      helpers.assertFileContent('Makefile', /test:/);
      helpers.assertFileContent('Makefile', /unit:/);
      helpers.assertFileContent('Makefile', /redis:/);
      helpers.assertFileContent('Makefile', /kill_redis:/);
      helpers.assertFileContent('Makefile', /redis_test:/);
      helpers.assertFileContent('Makefile', /kill_redis_test:/);
      helpers.assertFileContent('Makefile', /mongo:/);
      helpers.assertFileContent('Makefile', /kill_mongo:/);
      helpers.assertFileContent('Makefile', /clear_mongo:/);
      helpers.assertFileContent('Makefile', /mongo_test:/);
      helpers.assertFileContent('Makefile', /kill_mongo_test:/);
      helpers.assertFileContent('Makefile', /tox:/);
      done();
    });
  });
github heynemann / generator-python-package / test / test-creation.js View on Github external
this.app.run({}, function () {
      helpers.assertFileContent('setup.py', /from test_package import __version__/);
      helpers.assertFileContent('setup.py', /name='test-package',/);
      helpers.assertFileContent('setup.py', /    version=__version__,/);
      helpers.assertFileContent('setup.py', /    description='an incredible python package',/);
      helpers.assertFileContent('setup.py', /\nan incredible python package\n/);
      helpers.assertFileContent('setup.py', /    keywords='test package',/);
      helpers.assertFileContent('setup.py', /    author='Pablo Santiago Blum de Aguiar',/);
      helpers.assertFileContent('setup.py', /    author_email='scorphus@gmail.com',/);
      helpers.assertFileContent('setup.py', /    url='https:\/\/github.com\/someuser\/somepackage',/);
      helpers.assertFileContent('setup.py', /    license='MIT',/);
      helpers.assertFileContent('setup.py', /        'Programming Language :: Python :: 2.7',/);
      helpers.assertFileContent('setup.py', /    include_package_data=False,/);
      helpers.assertFileContent('setup.py', /        'pymongo',/);
      helpers.assertFileContent('setup.py', /        'redis',/);
      done();
    });
  });
github heynemann / generator-python-package / test / test-creation.js View on Github external
this.app.run({}, function () {
      helpers.assertFileContent('Makefile', /list:/);
      helpers.assertFileContent('Makefile', /no_targets__:/);
      helpers.assertFileContent('Makefile', /setup:/);
      helpers.assertFileContent('Makefile', /test:/);
      helpers.assertFileContent('Makefile', /unit:/);
      helpers.assertFileContent('Makefile', /redis:/);
      helpers.assertFileContent('Makefile', /kill_redis:/);
      helpers.assertFileContent('Makefile', /redis_test:/);
      helpers.assertFileContent('Makefile', /kill_redis_test:/);
      helpers.assertFileContent('Makefile', /mongo:/);
      helpers.assertFileContent('Makefile', /kill_mongo:/);
      helpers.assertFileContent('Makefile', /clear_mongo:/);
      helpers.assertFileContent('Makefile', /mongo_test:/);
      helpers.assertFileContent('Makefile', /kill_mongo_test:/);
      helpers.assertFileContent('Makefile', /tox:/);
      done();
    });
  });
github shovon / generator-react-material-ui / test / test-page.js View on Github external
react.run({}, function () {
        helpers.assertFile([
          'src/pages/GamePlayerPage/index.js',
          'src/pages/GamePlayerPage/style.less',
          'src/pages/GamePlayerPage/__tests__/index-test.js',
        ]);

        helpers.assertFileContent(
          'src/pages/GamePlayerPage/index.js',
          /\s+<div>\n\s+Game Player/
        );

        helpers.assertFileContent(
          'src/pages/GamePlayerPage/style.less',
          /\.game-player-page/
        );
        done();
      });
    });</div>
github heynemann / generator-python-package / test / test-creation.js View on Github external
this.app.run({}, function () {
      helpers.assertFileContent('setup.py', /from test_package import __version__/);
      helpers.assertFileContent('setup.py', /name='test-package',/);
      helpers.assertFileContent('setup.py', /    version=__version__,/);
      helpers.assertFileContent('setup.py', /    description='an incredible python package',/);
      helpers.assertFileContent('setup.py', /\nan incredible python package\n/);
      helpers.assertFileContent('setup.py', /    keywords='test package',/);
      helpers.assertFileContent('setup.py', /    author='Pablo Santiago Blum de Aguiar',/);
      helpers.assertFileContent('setup.py', /    author_email='scorphus@gmail.com',/);
      helpers.assertFileContent('setup.py', /    url='https:\/\/github.com\/someuser\/somepackage',/);
      helpers.assertFileContent('setup.py', /    license='MIT',/);
      helpers.assertFileContent('setup.py', /        'Programming Language :: Python :: 2.7',/);
      helpers.assertFileContent('setup.py', /    include_package_data=False,/);
      helpers.assertFileContent('setup.py', /        'pymongo',/);
      helpers.assertFileContent('setup.py', /        'redis',/);
      done();
    });
  });
github heynemann / generator-python-package / test / test-creation.js View on Github external
this.app.run({}, function () {
      helpers.assertFileContent('setup.py', /from test_package import __version__/);
      helpers.assertFileContent('setup.py', /name='test-package',/);
      helpers.assertFileContent('setup.py', /    version=__version__,/);
      helpers.assertFileContent('setup.py', /    description='an incredible python package',/);
      helpers.assertFileContent('setup.py', /\nan incredible python package\n/);
      helpers.assertFileContent('setup.py', /    keywords='test package',/);
      helpers.assertFileContent('setup.py', /    author='Pablo Santiago Blum de Aguiar',/);
      helpers.assertFileContent('setup.py', /    author_email='scorphus@gmail.com',/);
      helpers.assertFileContent('setup.py', /    url='https:\/\/github.com\/someuser\/somepackage',/);
      helpers.assertFileContent('setup.py', /    license='MIT',/);
      helpers.assertFileContent('setup.py', /        'Programming Language :: Python :: 2.7',/);
      helpers.assertFileContent('setup.py', /    include_package_data=False,/);
      helpers.assertFileContent('setup.py', /        'pymongo',/);
      helpers.assertFileContent('setup.py', /        'redis',/);
      done();
    });
  });