Skip to content

Commit

Permalink
Merge pull request #15935 from simonihmig/framework-detection
Browse files Browse the repository at this point in the history
[BUGFIX lts] blueprints: fix framework detection to work with prerelease versions of ember-cli-mocha
  • Loading branch information
rwjblue authored Dec 6, 2017
2 parents d9b2b1f + eb45abe commit 6115234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blueprints/test-framework-detector.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = function(blueprint) {

} else if ('ember-cli-mocha' in dependencies) {
let checker = new VersionChecker(this.project);
if (fs.existsSync(this.path + '/mocha-0.12-files') && checker.for('ember-cli-mocha', 'npm').satisfies('>=0.12.0')) {
if (fs.existsSync(this.path + '/mocha-0.12-files') && checker.for('ember-cli-mocha', 'npm').gte('0.12.0')) {
type = 'mocha-0.12';
} else {
type = 'mocha';
Expand Down

0 comments on commit 6115234

Please sign in to comment.