Skip to content

Commit

Permalink
fix(cache): use lodash assign for better node 0.12 support
Browse files Browse the repository at this point in the history
Previously we used Object.assign, but for better node 0.12 support we can use _.assign. This also
fixes a small wording change in some tests.

Fixes #132
  • Loading branch information
jimthedev committed Mar 10, 2016
1 parent 99ff1a2 commit 96a80c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commitizen/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function setCacheValueSync(cachePath, key, value) {
} catch (e) {
originalCache = {};
}
var newCache = Object.assign(originalCache, {
var newCache = _.assign(originalCache, {
[key]: value
});
fs.writeFileSync(cachePath, JSON.stringify(newCache, null, ' '));
Expand Down
2 changes: 1 addition & 1 deletion test/tests/staging.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ beforeEach(function() {
repo.createEndUser(sh, config.paths.endUserRepo);
});

describe('commit', function() {
describe('staging', function() {

it('should determine if a repo is clean', function(done) {

Expand Down

0 comments on commit 96a80c8

Please sign in to comment.