@@ -20,6 +20,7 @@ test('current plain commit log', function (t) {
20
20
21
21
t . deepEqual ( list [ list . length - 9 ] , {
22
22
author : { email : 'ralphtheninja@riseup.net' , name : 'Lars-Magnus Skog' }
23
+ , authors : [ { email : 'ralphtheninja@riseup.net' , name : 'Lars-Magnus Skog' } ]
23
24
, authorDate : 'Tue Feb 9 15:46:46 2016 +0100'
24
25
, description : [
25
26
'Fixes: https://github.com/rvagg/changelog-maker/issues/35'
@@ -35,13 +36,15 @@ test('current plain commit log', function (t) {
35
36
36
37
t . deepEqual ( list [ list . length - 4 ] , {
37
38
author : { email : 'rod@vagg.org' , name : 'Rod Vagg' }
39
+ , authors : [ { email : 'rod@vagg.org' , name : 'Rod Vagg' } ]
38
40
, authorDate : 'Fri Apr 17 11:16:51 2015 +1000'
39
41
, sha : 'f92b93c3c7175b07f847dd45058b121cea6b3a20'
40
42
, summary : 'deleted package.json line'
41
43
} , 'got correct fourth commit' )
42
44
43
45
t . deepEqual ( list [ list . length - 3 ] , {
44
46
author : { email : 'rod@vagg.org' , name : 'Rod Vagg' }
47
+ , authors : [ { email : 'rod@vagg.org' , name : 'Rod Vagg' } ]
45
48
, authorDate : 'Fri Apr 17 11:13:06 2015 +1000'
46
49
, description : [ 'comment' , 'Reviewed-By: Nobody' ]
47
50
, sha : 'db34ce2af09a6a9fb70241d43965a2bc48b90b4c'
@@ -50,6 +53,7 @@ test('current plain commit log', function (t) {
50
53
51
54
t . deepEqual ( list [ list . length - 2 ] , {
52
55
author : { email : 'rod@vagg.org' , name : 'Rod Vagg' }
56
+ , authors : [ { email : 'rod@vagg.org' , name : 'Rod Vagg' } ]
53
57
, authorDate : 'Fri Apr 17 10:52:16 2015 +1000'
54
58
, description : [
55
59
'Some extra summary information here'
@@ -69,9 +73,21 @@ test('current plain commit log', function (t) {
69
73
sha : 'd94841274e2979e7758413a0f48fa37560d0dde6'
70
74
, authorDate : 'Thu Apr 16 20:49:21 2015 +1000'
71
75
, author : { name : 'Rod Vagg' , email : 'rod@vagg.org' }
76
+ , authors : [ { email : 'rod@vagg.org' , name : 'Rod Vagg' } ]
72
77
, summary : 'make it so'
73
78
} , 'got correct first commit' )
74
79
80
+ t . deepEqual ( list [ list . length - 16 ] , {
81
+ sha : list [ list . length - 16 ] . sha // unknown at time of writing :)
82
+ , authorDate : 'Tue Jun 12 23:41:35 2018 +0200'
83
+ , author : { name : 'Anna Henningsen' , email : 'anna@addaleax.net' }
84
+ , authors : [
85
+ { name : 'Anna Henningsen' , email : 'anna@addaleax.net' }
86
+ , { name : 'nobody' , email : 'nobody@nowhere' }
87
+ ]
88
+ , summary : 'add support for co-authored-by'
89
+ } , 'got correct co-authored-by commit' )
90
+
75
91
t . end ( )
76
92
} )
77
93
} )
0 commit comments