test-bbb.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. var path = require('path');
  2. var helpers = require('../..').test;
  3. describe('Bbb generator test', function() {
  4. before(helpers.before(path.join(__dirname, './temp')));
  5. it('runs sucessfully', function(done) {
  6. helpers.runGenerator('bbb', 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/app.js');
  19. helpers.assertFile('app/scripts/config.js');
  20. helpers.assertFile('app/scripts/libs/almond.js');
  21. helpers.assertFile('app/scripts/libs/backbone.js');
  22. helpers.assertFile('app/scripts/libs/jquery.js');
  23. helpers.assertFile('app/scripts/libs/lodash.js');
  24. helpers.assertFile('app/scripts/libs/require.js');
  25. helpers.assertFile('app/scripts/main.js');
  26. helpers.assertFile('app/scripts/plugins/backbone.layoutmanager.js');
  27. helpers.assertFile('app/scripts/router.js');
  28. helpers.assertFile('app/styles/h5bp.css');
  29. helpers.assertFile('app/styles/index.css');
  30. helpers.assertFile('Gruntfile.js');
  31. helpers.assertFile('package.json');
  32. helpers.assertFile('test/index.html');
  33. helpers.assertFile('test/lib/chai.js');
  34. helpers.assertFile('test/lib/expect.js');
  35. helpers.assertFile('test/lib/mocha/mocha.css');
  36. helpers.assertFile('test/lib/mocha/mocha.js');
  37. helpers.assertFile('test/runner/mocha.js');
  38. helpers.assertFile('test/spec/example.js');
  39. });
  40. });