File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments