@@ -20,6 +20,7 @@ test('current plain commit log', function (t) {
2020
2121 t . deepEqual ( list [ list . length - 9 ] , {
2222 author : { email : 'ralphtheninja@riseup.net' , name : 'Lars-Magnus Skog' }
23+ , authors : [ { email : 'ralphtheninja@riseup.net' , name : 'Lars-Magnus Skog' } ]
2324 , authorDate : 'Tue Feb 9 15:46:46 2016 +0100'
2425 , description : [
2526 'Fixes: https://github.com/rvagg/changelog-maker/issues/35'
@@ -35,13 +36,15 @@ test('current plain commit log', function (t) {
3536
3637 t . deepEqual ( list [ list . length - 4 ] , {
3738 author : { email : 'rod@vagg.org' , name : 'Rod Vagg' }
39+ , authors : [ { email : 'rod@vagg.org' , name : 'Rod Vagg' } ]
3840 , authorDate : 'Fri Apr 17 11:16:51 2015 +1000'
3941 , sha : 'f92b93c3c7175b07f847dd45058b121cea6b3a20'
4042 , summary : 'deleted package.json line'
4143 } , 'got correct fourth commit' )
4244
4345 t . deepEqual ( list [ list . length - 3 ] , {
4446 author : { email : 'rod@vagg.org' , name : 'Rod Vagg' }
47+ , authors : [ { email : 'rod@vagg.org' , name : 'Rod Vagg' } ]
4548 , authorDate : 'Fri Apr 17 11:13:06 2015 +1000'
4649 , description : [ 'comment' , 'Reviewed-By: Nobody' ]
4750 , sha : 'db34ce2af09a6a9fb70241d43965a2bc48b90b4c'
@@ -50,6 +53,7 @@ test('current plain commit log', function (t) {
5053
5154 t . deepEqual ( list [ list . length - 2 ] , {
5255 author : { email : 'rod@vagg.org' , name : 'Rod Vagg' }
56+ , authors : [ { email : 'rod@vagg.org' , name : 'Rod Vagg' } ]
5357 , authorDate : 'Fri Apr 17 10:52:16 2015 +1000'
5458 , description : [
5559 'Some extra summary information here'
@@ -69,9 +73,21 @@ test('current plain commit log', function (t) {
6973 sha : 'd94841274e2979e7758413a0f48fa37560d0dde6'
7074 , authorDate : 'Thu Apr 16 20:49:21 2015 +1000'
7175 , author : { name : 'Rod Vagg' , email : 'rod@vagg.org' }
76+ , authors : [ { email : 'rod@vagg.org' , name : 'Rod Vagg' } ]
7277 , summary : 'make it so'
7378 } , 'got correct first commit' )
7479
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+
7591 t . end ( )
7692 } )
7793} )
0 commit comments