@@ -31,6 +31,16 @@ const pacote = {
3131 version : '1.2.3' ,
3232 repository : { url : 'https://github.com/foo/repoobj' } ,
3333 }
34+ : spec === 'mailtest' ? {
35+ name : 'mailtest' ,
36+ version : '3.7.4' ,
37+ bugs :
{ email :
'[email protected] ' } , 38+ }
39+ : spec === 'secondmailtest' ? {
40+ name : 'secondmailtest' ,
41+ version : '0.1.1' ,
42+ bugs :
{ email :
'[email protected] ' } , 43+ }
3444 : spec === '.' ? {
3545 name : 'thispkg' ,
3646 version : '1.2.3' ,
@@ -59,14 +69,16 @@ t.test('usage', (t) => {
5969 t . end ( )
6070} )
6171
62- t . test ( 'open bugs urls' , t => {
72+ t . test ( 'open bugs urls & emails ' , t => {
6373 const expect = {
6474 nobugs : 'https://www.npmjs.com/package/nobugs' ,
6575 'bugsobj-nourl' : 'https://www.npmjs.com/package/bugsobj-nourl' ,
6676 bugsurl : 'https://bugzilla.localhost/bugsurl' ,
6777 bugsobj : 'https://bugzilla.localhost/bugsobj' ,
6878 repourl : 'https://github.com/foo/repourl/issues' ,
6979 repoobj : 'https://github.com/foo/repoobj/issues' ,
80+ mailtest :
'mailto:[email protected] ' , 81+ secondmailtest :
'mailto:[email protected] ' , 7082 '.' : 'https://example.com' ,
7183 }
7284 const keys = Object . keys ( expect )
0 commit comments