test-quickstart.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. var path = require('path');
  2. var helpers = require('../..').test;
  3. describe('Quickstart generator test', function() {
  4. before(helpers.before(path.join(__dirname, './temp')));
  5. it('runs sucessfully', function(done) {
  6. helpers.runGenerator('quickstart', done);
  7. });
  8. it('creates expected files', function() {
  9. helpers.assertFile('.editorconfig');
  10. helpers.assertFile('.gitattributes');
  11. helpers.assertFile('.gitignore');
  12. helpers.assertFile('.jshintrc');
  13. helpers.assertFile('app/.htaccess');
  14. helpers.assertFile('app/404.html');
  15. helpers.assertFile('app/favicon.ico');
  16. helpers.assertFile('app/index.html');
  17. helpers.assertFile('app/robots.txt');
  18. helpers.assertFile('app/scripts/vendor/jquery.min.js');
  19. helpers.assertFile('app/scripts/vendor/modernizr.min.js');
  20. helpers.assertFile('app/styles/main.css');
  21. helpers.assertFile('Gruntfile.js');
  22. helpers.assertFile('package.json');
  23. helpers.assertFile('test/index.html');
  24. helpers.assertFile('test/lib/chai.js');
  25. helpers.assertFile('test/lib/expect.js');
  26. helpers.assertFile('test/lib/mocha/mocha.css');
  27. helpers.assertFile('test/lib/mocha/mocha.js');
  28. helpers.assertFile('test/runner/mocha.js');
  29. helpers.assertFile('test/spec/.gitkeep');
  30. });
  31. });