Permalink
Browse files

Switch to mocha from jasmine by default.

  • Loading branch information...
1 parent 49da61e commit af261948022d81f2e24083403ada333155aa7862 @paulmillr paulmillr committed Aug 7, 2012
@@ -27,7 +27,7 @@ function Base(args, options, config) {
'javascript-engine': 'yeoman:js',
'stylesheet-engine': 'sass',
'template-engine': 'handlebars',
- 'test-framework': 'jasmine',
+ 'test-framework': 'mocha',
// we use js-framework here to hook into bootstrap js plugins by default
// but it might very well be done a bit differently (or we consider bootstrap
@@ -12,7 +12,7 @@ function AppGenerator(args, options, config) {
this.destinationRoot(this.name);
// setup the test-framework property, Gruntfile template will need this
- this.test_framework = options['test-framework'] || 'jasmine';
+ this.test_framework = options['test-framework'] || 'mocha';
// cleanup the name property from trailing /, typical usage of directories.
// update the args object, it's used to initialize js-framework hooks
@@ -70,10 +70,11 @@ The default directory structure of a generated yeoman application:
│ └── split_view_spec.js
└── test
├── index.html
- ├── jasmine
- │ ├── jasmine-html.js
- │ ├── jasmine.css
- │ └── jasmine.js
- └── spec_helper.js
-
-
+ ├── lib
+ │ ├── chai.js
+ │ ├── expect.js
+ │ └── mocha-1.2.2
+ | ├── mocha.css
+ | └── mocha.js
+ └── runner
+ └── mocha.js
@@ -15,7 +15,7 @@ function AppGenerator(args, options, config) {
yeoman.generators.Base.apply(this, arguments);
// setup the test-framework property, Gruntfile template will need this
- this.test_framework = options['test-framework'] || 'jasmine';
+ this.test_framework = options['test-framework'] || 'mocha';
// cleanup the name property from trailing /, typical usage of directories.
// update the args object, it's used to initialize js-framework hooks
@@ -70,10 +70,13 @@ The default directory structure of a generated yeoman application:
│ └── split_view_spec.js
└── test
├── index.html
- ├── jasmine
- │ ├── jasmine-html.js
- │ ├── jasmine.css
- │ └── jasmine.js
- └── spec_helper.js
+ ├── lib
+ │ ├── chai.js
+ │ ├── expect.js
+ │ └── mocha-1.2.2
+ | ├── mocha.css
+ | └── mocha.js
+ └── runner
+ └── mocha.js

0 comments on commit af26194

Please sign in to comment.