How to use the yeoman-assert.jsonFileContent 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 nodecg / generator-nodecg / test / graphic.js View on Github external
it('extends package.json keys with missing ones', function () {
			const pkg = _.extend({
				nodecg: {
					graphics: [{
						file: 'index.html',
						width: 1280,
						height: 720
					}]
				}
			}, this.pkg);
			assert.jsonFileContent('package.json', pkg);
		});
github nodecg / generator-nodecg / test / app.js View on Github external
it('extends package.json keys with missing ones', function () {
			const pkg = _.extend({name: 'test-bundle'}, this.pkg);
			assert.jsonFileContent('package.json', pkg);
		});
github nodecg / generator-nodecg / test / panel.js View on Github external
it('extends package.json keys with missing ones', function () {
			const pkg = _.extend({
				nodecg: {
					dashboardPanels: [{
						name: 'test-panel',
						title: 'Test Panel',
						width: 2,
						file: 'test-panel.html',
						headerColor: '#525F78'
					}]
				}
			}, this.pkg);
			assert.jsonFileContent('package.json', pkg);
		});
github NewbranLTD / generator-nodex / __tests__ / lang.js View on Github external
.then(() => {
          const newPkg = _.extend({ name: packageName }, pkg);
          assert.jsonFileContent('package.json', newPkg);
          assert.fileContent('README.md', 'foo');
        });
    });
github NewbranLTD / generator-nodex / __tests__ / app.js View on Github external
.then(() => {
          const newPkg = _.extend({ name: packageName }, pkg);
          assert.jsonFileContent('package.json', newPkg);
          assert.fileContent('README.md', 'foo');
        });
    });

yeoman-assert

Assert utility from yeoman

BSD-2-Clause
Latest version published 6 years ago

Package Health Score

57 / 100
Full package analysis