Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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);
});
it('extends package.json keys with missing ones', function () {
const pkg = _.extend({name: 'test-bundle'}, this.pkg);
assert.jsonFileContent('package.json', pkg);
});
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);
});
.then(() => {
const newPkg = _.extend({ name: packageName }, pkg);
assert.jsonFileContent('package.json', newPkg);
assert.fileContent('README.md', 'foo');
});
});
.then(() => {
const newPkg = _.extend({ name: packageName }, pkg);
assert.jsonFileContent('package.json', newPkg);
assert.fileContent('README.md', 'foo');
});
});