Skip to content

Commit 734481f

Browse files
committed
Merge pull request #7 from seawatts/master
Removed unnecessary console.log
2 parents ebc4745 + 0960c90 commit 734481f

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

index.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ module.exports = {
1818
},
1919

2020
displayRevisions: function(context) {
21-
console.log(context.revisions);
2221
if(!context.revisions) {
2322
this.log("Could not display latest revisions because no revisions were found in context.", {color: 'yellow'});
2423
return;
@@ -62,7 +61,7 @@ module.exports = {
6261
row += " ";
6362
}
6463
if(key !== lastKey) {
65-
row += "|"
64+
row += "|";
6665
}
6766
});
6867

@@ -83,7 +82,7 @@ module.exports = {
8382
}.bind(this));
8483
return presentKeys;
8584
},
86-
_displayHeader: function(keys, revisions) {
85+
_displayHeader: function(keys) {
8786
var keyHeader = " ";
8887
var lastKey = keys[keys.length - 1];
8988

@@ -98,7 +97,7 @@ module.exports = {
9897

9998
// revision hash needs an unknown amount of space, don't display closing |
10099
if(key !== lastKey) {
101-
keyHeader += "|"
100+
keyHeader += "|";
102101
}
103102
});
104103
this.log(keyHeader);

tests/unit/index-nodetest.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,8 @@ describe('displayRevisions plugin', function() {
152152

153153
it('transforms timestamps to human-readable dates (YYYY/MM/DD HH:mm:ss)', function() {
154154
plugin.displayRevisions(context);
155-
var utcOffset = moment().utcOffset();
156155
var expectedFormat = ('YYYY/MM/DD HH:mm:ss');
157-
var expectedDate = moment(1438232435000).utcOffset(utcOffset).format(expectedFormat);
156+
var expectedDate = moment(1438232435000).format(expectedFormat);
158157

159158
var messages = mockUi.messages.reduce(function(previous, current) {
160159
if (current.indexOf(expectedDate) !== -1) {

0 commit comments

Comments
 (0)