Skip to content

Commit

Permalink
fix(skip-cordova-build): fixed broken specs for skipping platform val…
Browse files Browse the repository at this point in the history
…idation
  • Loading branch information
christophersansone committed Jan 31, 2017
1 parent 334443f commit 428f5e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/commands/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ module.exports = Command.extend({
return validateRootUrl.run(projectConfig, options.force)
.then(validateLocationType.prepare(projectConfig))
.then(validateAllowNavigation.prepare(false))
.then(function() {
.then(function(result) {
if (options.skipCordovaBuild !== true) {
return validatePlatform.prepare();
validatePlatform.run();
}
})
.then(hook.prepare('beforeBuild', options))
Expand Down
1 change: 0 additions & 1 deletion node-tests/unit/commands/build-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ describe('Build Command', function() {
expect(tasks).to.deep.equal([
'validate-root-url',
'validate-allow-navigation',
'validate-platform',
'hook beforeBuild',
'ember-build',
'hook afterBuild'
Expand Down

0 comments on commit 428f5e6

Please sign in to comment.