Skip to content
This repository has been archived by the owner on Dec 25, 2023. It is now read-only.

Commit

Permalink
Force set key
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jun 4, 2016
1 parent c179d41 commit 3e4126d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/Bumped.config.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ module.exports = class Config
filename : file
property : opts.property
value : opts.value
force : true
, done

return @bumped.logger.errorHandlerHandler MSG.NOT_SET_PROPERTY(), cb unless opts.property or opts.value
Expand Down
4 changes: 2 additions & 2 deletions test/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ describe 'Bumped ::', ->

describe 'set ::', ->

it 'change a property across the files', ->
it 'change a property across the files', (done) ->
descriptionValue = 'a new description for the project'
@bumped.config.set
property: 'description'
Expand All @@ -170,7 +170,7 @@ describe 'Bumped ::', ->
(err?).should.be.equal false
loadJSON('./bower.json').description.should.be.equal descriptionValue
loadJSON('./package.json').description.should.be.equal descriptionValue
loadJSON('./component.json').description.should.be.equal descriptionValue
done()

describe 'plugins ::', ->

Expand Down

0 comments on commit 3e4126d

Please sign in to comment.