How to use the yeoman-generator.assert.noFile 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 Swiip / generator-gulp-angular / test / test-files-generate.mocha.js View on Github external
gulpAngular.run({}, function() {
        assert.file([].concat(expectedFile, [
          'src/app/index.css',
        ]));

        assert.noFile('src/app/vendor.*');

        // assert.fileContent([].concat(expectedGulpContent, [
        //   ['src/index.html', //],
        //   ['bower.json', /"bootstrap": "3.2.x"/],
        // ]));

        // No Gulp task for style
        assert.fileContent([
          ['src/index.html', //],
          ['bower.json', /"bootstrap": "3.2.x"/],
        ]);

        assert.noFileContent([
          ['package.json', /"gulp-less": "\^1.3.3"/],
          ['package.json', /"gulp-sass": "\^0.7.3"/],
          ['package.json', /"gulp-ruby-sass": "\^0.7.1"/],
github NovaeWorkshop / Nova / test / font.js View on Github external
it('should see that there is no font style yet', function () {
            assert.noFile('client/styles/fonts.scss');
        });
github ericmdantas / generator-ng-fullstack / test / acceptance / test-app-go.js View on Github external
it('creates default files - Go - without the files responsible for the static stuff', () =>  {
          assert.file(_goFiles);

          assert.noFile('.alivrc');
          assert.noFile('server/common/static/static.go');
          assert.noFile('server/common/static/static_test.go');
        });
      })
github Accenture / generator-mario / test / test-layoutview.js View on Github external
it('creates files', function() {
      assert.file([
        'app/scripts/apps/fruit/apples_layout_view.js',
        'app/scripts/apps/fruit/apples_layout_view_test.js'
      ]);

      assert.noFile('app/scripts/apps/fruit/apples_layout_template.js');
    });
    it('contains template', function() {
github marcol / generator-alchemy / test / app.js View on Github external
it('excluded files', function () {

                var excludedDotfiles = settings.excludedDotfiles.map(
                    function (value) {
                    return '.' + value;
                });

                assert.noFile(excludedDotfiles);

            });
github ericmdantas / generator-ng-fullstack / test / acceptance / test-app-go.js View on Github external
it('creates default files - Go', () =>  {
        assert.file(_goFiles);
        assert.noFile('.alivrc');
        assert.noFile('server/cert/ca.crt');
        assert.noFile('server/cert/ca.csr');
        assert.noFile('server/cert/ca.key');
        assert.noFile('server/cert/server.crt');
        assert.noFile('server/cert/server.csr');
        assert.noFile('server/cert/server.key');
      });
    });
github yeoman / generator-mobile / test / test-app.js View on Github external
it('does not have a deploy task', function () {
      assert.noFileContent('gulpfile.js', /gulp.task\('deploy/);
      assert.noFile('dist/.git');
    });
github videojs / generator-videojs-plugin / test / test-options.js View on Github external
it('produces expected package properties and file(s)', function() {
      assert.strictEqual(this.pkg.author, 'Brightcove, Inc.');
      assert.strictEqual(this.pkg.license, 'Private/Closed Source');
      assert.strictEqual(this.pkg.private, true);
      assert.noFile(libs.fileList('oss'));
    });
  });
github johannesjo / generator-modular-angular / test / app.spec.js View on Github external
.on('end', function ()
                {
                    assert.file([].concat(
                        expected
                    ));
                    assert.noFile([
                        'app/styles/main.css'
                    ]);
                    assert.fileContent(expectedContent);
                    done();
                });
        });
github lauterry / generator-ngtailor / test / test-mode-advanced-custom-less.js View on Github external
gen.onEnd(function() {
			assert.noFile(expected);
			done();
		});
	});