How to use the yeoman-generator.test.assertFiles 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 rhumaric / generator-playground / test / test-creation.js View on Github external
it('creates expected files', function () {
      var expected = [
        'index.html',
        'js/app.js',
        'css/style.css',
        'Gruntfile.js',
        'package.json',
        'bower.json'
      ];

      helpers.assertFiles(expected);
    });
github ffffranklin / generator-tumblr-theme / test / test-creation.js View on Github external
this.app.run({}, function () {
            helpers.assertFiles(expected);
            done();
        });
    });
github tapas4java / generator-ng-appgen / test / test-creation.js View on Github external
this.app.run({}, function () {
          helpers.assertFiles(expected);
          done();
        });
      });
github eddiemoore / generator-smarttv / test / test-creation.js View on Github external
this.app.run({}, function () {
            helpers.assertFiles(expected);
            done();
        });
    });
github klei / generator-klei / test / test-app-generator.js View on Github external
klei.run({}, function () {
      helpers.assertFiles(expected);
      done();
    });
  });
github deprecate / generator-ember / test / test-model.js View on Github external
this.model.run({}, function () {
      helpers.assertFiles( JS_FILES_GENERATED_BY_MODEL_SUBGEN );
      helpers.assertFile('app/scripts/models/user_model.js', /User = DS.Model/);
      helpers.assertFile('app/scripts/models/user_model.js', /name: DS.attr\('string'\)/);
      helpers.assertFile('app/scripts/models/user_model.js', /zipcode: DS.attr\('number'\)/);
      helpers.assertFile('app/scripts/models/user_model.js', /User.FIXTURES/);
      done();
    });
  });
github deprecate / generator-ember / test / test-router.js View on Github external
router.run({}, function () {
      helpers.assertFiles([router.options.router_file]);
      done();
    });
  });
github eclifford / generator-testudo / test / testudo.js View on Github external
this.module.run({}, function() {
        helpers.assertFiles([
          'app/modules/Foo/main.js',
          'app/modules/Foo/main.styl'
        ]);
        done();
      });
    });
github yeoman / generator-chromeapp / test / test-renderfile.js View on Github external
this.chromeapp.run({}, function () {
        helpers.assertFiles(expected);
        done();
      });
    });
github RobLoach / generator-docpad / test / test-creation.js View on Github external
this.app.run({}, function () {
            helpers.assertFiles(expected);
            done();
        });
    });