How to use the yeoman-assert.file function in yeoman-assert

To help you get started, we’ve selected a few yeoman-assert 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 Veams / generator-veams / test / veams-packages-spec.js View on Github external
it('adds _get-media.scss and import state to sass file', function () {
			assert.file(srcPath + 'core/styles/_get-media.scss');
			assert.fileContent(srcPath + 'app.scss', /@import \"core\/styles\/get-media\"/);
		});
github Veams / generator-veams / test / grunt-csscomb-spec.js View on Github external
it('creates helper files', function () {
		assert.file(helperPath + "_grunt/csscomb.js");
		assert.file(helperPath + "task-configs/csscomb.json");
	});
github Veams / generator-veams / test / grunt-webfont-spec.js View on Github external
it('creates helper files', function () {
		assert.file(helperPath + '_grunt/webfont.js');
		assert.file(helperPath + '_grunt/custom/iconbuilder.js');
	});
github Veams / generator-veams / test / gulp-stylelint-spec.js View on Github external
it('creates helper files', function () {
			assert.file(helperPath + '_gulp/hinting.js');
			assert.file(helperPath + 'task-configs/stylelint.config.js');
		});
github Veams / generator-veams / test / grunt-grunticon-spec.js View on Github external
it('creates helper files', function () {
		assert.file(helperPath + "_grunt/grunticon.js");
		assert.file(helperPath + "_grunt/replace.js");
	});
github angular-fullstack / generator-angular-fullstack / test / test-file-creation.js View on Github external
it('should have all npm packages in fixtures/node_modules', function() {
      var packageJson = require('./fixtures/package.json');
      var deps = Object.keys(packageJson.dependencies);
      deps = deps.concat(Object.keys(packageJson.devDependencies));
      deps = deps.map(function(dep) {
        return path.join(__dirname, 'fixtures', 'node_modules', dep);
      });
      assert.file(deps);
    });
github snphq / generator-sp / test / app.js View on Github external
it('creates expected files', function () {
      assert.file(expected);
      assert.fileContent(expectedContent);
    });
github johannesjo / generator-modular-angular / test / app.spec.js View on Github external
.on('end', function() {
                    assert.file(expected);
                    assert.noFile([
                        'app/styles/main.css'
                    ]);
                    assert.fileContent(expectedContent);
                    done();
                });
        });
github matoilic / generator-angular-lazy / spec / app-generator-spec.js View on Github external
appGenerator.run({ root }, null, () => {
            const coreFiles = appFileExpectations().map((p) => path.join(root, p));
            const i18nFiles = appI18nFileExpectations().map((p) => path.join(root, p));
            const stateFiles = stateFileExpectations(appGenerator.defaultOptions.indexRouteName)
                .map((p) => path.join(root, p));

            assert.file(coreFiles);
            assert.file(i18nFiles);
            assert.file(stateFiles);

            done();
        });
    });

yeoman-assert

Assert utility from yeoman

BSD-2-Clause
Latest version published 6 years ago

Package Health Score

57 / 100
Full package analysis