Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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"/],
it('should see that there is no font style yet', function () {
assert.noFile('client/styles/fonts.scss');
});
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');
});
})
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() {
it('excluded files', function () {
var excludedDotfiles = settings.excludedDotfiles.map(
function (value) {
return '.' + value;
});
assert.noFile(excludedDotfiles);
});
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');
});
});
it('does not have a deploy task', function () {
assert.noFileContent('gulpfile.js', /gulp.task\('deploy/);
assert.noFile('dist/.git');
});
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'));
});
});
.on('end', function ()
{
assert.file([].concat(
expected
));
assert.noFile([
'app/styles/main.css'
]);
assert.fileContent(expectedContent);
done();
});
});
gen.onEnd(function() {
assert.noFile(expected);
done();
});
});