it('creates files', function () { assert.file([ 'somefile.js' ]); });
it('is jquery version 1.x.x added to bower.json?', function () { assert.fileContent('bower.json', /"jquery": "~1"/); });
it('the UserSecrets nuget package version is not changed', function() { assert.equal(existingPackageVersion, nconf.get(USER_SECRETS_NUGET_PACKAGE_KEY)); });
it('delete all bower dependenies', function () { assert.noFileContent('bower.json', /veams-components|veams-scss|veams-js|almond|requirejs|requirejs-text|backbone|jquery|foundation|sass-bootstrap|bourbon|neat/); });
it('is legacy support noted in README?', function () { assert.fileContent('README.md', /This project supports IE8!/); });
it('is backend JS wired to sandbox.html?', function () { assert.fileContent('sandbox.html', /assets\/js\/deferred\/backend/); });
it('should create filter files', function () { assert.file([ 'app/home/test1-filter.coffee', 'app/home/test1-filter_test.coffee' ]); });
it('are conditional comments added to sandbox.html?', function () { assert.fileContent('sandbox.html', /if gt IE 8/); });
it('the UserSecrets nuget package version is added', function() { assert.fileContent('./project.json', /Microsoft\.Extensions\.Configuration\.UserSecrets/); assert.fileContent('./project.json', /1\.0\.0-rc1-final/); });
it('there is no project.json created in current directory', function() { assert.noFile('project.json'); });
it('The correctly formatted userSecretId value is added', function() { assert.fileContent('./project.json', /aspnet5-emptyWebTest/); });
it('The userSecretId key is added', function() { assert.ok(nconf.get(USER_SECRETS_ID_KEY)); });
it('There is a project.json file already created', function() { assert.file('project.json'); });
it('is respondJS added to bower.json?', function () { assert.fileContent('bower.json', /"respondJS": "~1"/); });
it('should create filter files', function () { assert.file([ 'app/home/test2-filter.ts', 'app/home/test2-filter_test.ts' ]); });
it('is browsehappy.com linked in sandbox.html?', function () { assert.fileContent('sandbox.html', /browsehappy\.com/); });
it('creates files', () => { assert.file([ 'client/dev/user-resource/resource/country.js' ]); });
it('is modernizr\'s shiv and printshiv set to true?', function () { assert.fileContent('gruntfile.js', /'shiv' : true/); assert.fileContent('gruntfile.js', /'printshiv' : true/); });
download({}, function (err) { assert(err); assert.equal(err.toString(), 'Error: bad request'); done(); });
it('is backend CSS wired to sandbox.html?', function () { assert.fileContent('sandbox.html', /backend\.css/); });
it('creates files', function () { // yes, there could be more :-) assert.file([ '.editorconfig', ]); });
it('have all files been created?', function () { assert.file(files); });
it('The userSecretId key is not overriden', function() { assert.equal(existingUserSecretId, nconf.get(USER_SECRETS_ID_KEY)); });