File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ module.exports = {
18
18
} ,
19
19
20
20
displayRevisions : function ( context ) {
21
- console . log ( context . revisions ) ;
22
21
if ( ! context . revisions ) {
23
22
this . log ( "Could not display latest revisions because no revisions were found in context." , { color : 'yellow' } ) ;
24
23
return ;
@@ -62,7 +61,7 @@ module.exports = {
62
61
row += " " ;
63
62
}
64
63
if ( key !== lastKey ) {
65
- row += "|"
64
+ row += "|" ;
66
65
}
67
66
} ) ;
68
67
@@ -83,7 +82,7 @@ module.exports = {
83
82
} . bind ( this ) ) ;
84
83
return presentKeys ;
85
84
} ,
86
- _displayHeader : function ( keys , revisions ) {
85
+ _displayHeader : function ( keys ) {
87
86
var keyHeader = " " ;
88
87
var lastKey = keys [ keys . length - 1 ] ;
89
88
@@ -98,7 +97,7 @@ module.exports = {
98
97
99
98
// revision hash needs an unknown amount of space, don't display closing |
100
99
if ( key !== lastKey ) {
101
- keyHeader += "|"
100
+ keyHeader += "|" ;
102
101
}
103
102
} ) ;
104
103
this . log ( keyHeader ) ;
Original file line number Diff line number Diff line change @@ -152,9 +152,8 @@ describe('displayRevisions plugin', function() {
152
152
153
153
it ( 'transforms timestamps to human-readable dates (YYYY/MM/DD HH:mm:ss)' , function ( ) {
154
154
plugin . displayRevisions ( context ) ;
155
- var utcOffset = moment ( ) . utcOffset ( ) ;
156
155
var expectedFormat = ( 'YYYY/MM/DD HH:mm:ss' ) ;
157
- var expectedDate = moment ( 1438232435000 ) . utcOffset ( utcOffset ) . format ( expectedFormat ) ;
156
+ var expectedDate = moment ( 1438232435000 ) . format ( expectedFormat ) ;
158
157
159
158
var messages = mockUi . messages . reduce ( function ( previous , current ) {
160
159
if ( current . indexOf ( expectedDate ) !== - 1 ) {
You can’t perform that action at this time.
0 commit comments