From acd7d050126e3f99ba841769ce30881af69f2708 Mon Sep 17 00:00:00 2001 From: Naveen Kumar Sangi Date: Mon, 30 Jul 2018 09:10:10 +0530 Subject: [PATCH 1/2] Update dependencies --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2c9096a..81391ae 100755 --- a/package.json +++ b/package.json @@ -51,10 +51,10 @@ }, "devDependencies": { "chai": "^4.1.2", - "coveralls": "^2.13.1", + "coveralls": "^3.0.2", "istanbul": "^0.4.5", "mocha": "^5", "mocha-lcov-reporter": "^1.3.0", - "sinon": "^3.2.1" + "sinon": "^6.1.4" } } From 86adc8a50bfb6e10aee5cffaf2564cc3f907587d Mon Sep 17 00:00:00 2001 From: Naveen Kumar Sangi Date: Mon, 30 Jul 2018 09:10:29 +0530 Subject: [PATCH 2/2] hasTimes.js: Use correct params in Time.toHumanReadable --- src/models/hasTimes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/hasTimes.js b/src/models/hasTimes.js index 297290a..8755c07 100755 --- a/src/models/hasTimes.js +++ b/src/models/hasTimes.js @@ -127,7 +127,7 @@ class hasTimes extends Base { let difference = this.data.time_stats.total_time_spent - totalTimeSpent, note = Object.assign({noteable_type: this._typeSingular}, this.data); - times.unshift(new Time(Time.toHumanReadable(difference, null, this.config.get('hoursPerDay')), note, this, this.config)); + times.unshift(new Time(Time.toHumanReadable(difference, this.config.get('hoursPerDay')), note, this, this.config)); resolve(); })); @@ -142,4 +142,4 @@ class hasTimes extends Base { } } -module.exports = hasTimes; \ No newline at end of file +module.exports = hasTimes;