@@ -47,7 +47,24 @@ test('replace the content between the ALL-CONTRIBUTORS-LIST tags by a table of c
4747 const { kentcdodds, bogas04} = contributors
4848 const { options, jfmengels, content} = fixtures ( )
4949 const contributorList = [ kentcdodds , bogas04 , jfmengels ]
50- const result = generate ( Object . assign ( options , { linkToUsage : true } ) , contributorList , content )
50+ const result = generate (
51+ Object . assign ( options , { linkToUsage : true } ) ,
52+ contributorList ,
53+ content ,
54+ )
55+
56+ expect ( result ) . toMatchSnapshot ( )
57+ } )
58+
59+ test ( 'replace the content between the ALL-CONTRIBUTORS-LIST tags by a table of contributors without linkToUsage' , ( ) => {
60+ const { kentcdodds, bogas04} = contributors
61+ const { options, jfmengels, content} = fixtures ( )
62+ const contributorList = [ kentcdodds , bogas04 , jfmengels ]
63+ const result = generate (
64+ Object . assign ( options , { linkToUsage : false } ) ,
65+ contributorList ,
66+ content ,
67+ )
5168
5269 expect ( result ) . toMatchSnapshot ( )
5370} )
@@ -81,7 +98,11 @@ test('split contributors into multiples lines when there are too many with linkT
8198 kentcdodds ,
8299 kentcdodds ,
83100 ]
84- const result = generate ( Object . assign ( options , { linkToUsage : true } ) , contributorList , content )
101+ const result = generate (
102+ Object . assign ( options , { linkToUsage : true } ) ,
103+ contributorList ,
104+ content ,
105+ )
85106
86107 expect ( result ) . toMatchSnapshot ( )
87108} )
0 commit comments