Skip to content

Commit

Permalink
fix failing node tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav0 committed Jul 23, 2019
1 parent 958043c commit 480ad71
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@ module.exports = function(blueprint) {
let dependencies = this.project.dependencies();

if ('ember-qunit' in dependencies) {
if (fs.existsSync(this.path + '/qunit-rfc-232-files')) {
if (fs.existsSync(blueprint.blueprintPath + '/qunit-rfc-232-files')) {
type = 'qunit-rfc-232';
} else {
type = 'qunit';
}
} else if ('ember-cli-qunit' in dependencies) {
let checker = new VersionChecker(this.project);
if (fs.existsSync(this.path + '/qunit-rfc-232-files') && checker.for('ember-cli-qunit', 'npm').gte('4.2.0')) {
if (fs.existsSync(blueprint.blueprintPath + '/qunit-rfc-232-files') && checker.for('ember-cli-qunit', 'npm').gte('4.2.0')) {
type = 'qunit-rfc-232';
} else {
type = 'qunit';
}
} else if ('ember-mocha' in dependencies) {
let checker = new VersionChecker(this.project);
if (fs.existsSync(this.path + '/mocha-rfc-232-files') && checker.for('ember-mocha', 'npm').gte('0.14.0')) {
if (fs.existsSync(blueprint.blueprintPath + '/mocha-rfc-232-files') && checker.for('ember-mocha', 'npm').gte('0.14.0')) {
type = 'mocha-rfc-232';
} else {
type = 'mocha';
Expand Down

0 comments on commit 480ad71

Please sign in to comment.