Skip to content

Commit 96a80c8

Browse files
committed
fix(cache): use lodash assign for better node 0.12 support
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
1 parent 99ff1a2 commit 96a80c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/commitizen/cache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function setCacheValueSync(cachePath, key, value) {
2424
} catch (e) {
2525
originalCache = {};
2626
}
27-
var newCache = Object.assign(originalCache, {
27+
var newCache = _.assign(originalCache, {
2828
[key]: value
2929
});
3030
fs.writeFileSync(cachePath, JSON.stringify(newCache, null, ' '));

test/tests/staging.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ beforeEach(function() {
2424
repo.createEndUser(sh, config.paths.endUserRepo);
2525
});
2626

27-
describe('commit', function() {
27+
describe('staging', function() {
2828

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

0 commit comments

Comments
 (0)