@@ -12,7 +12,7 @@ describe('useCffstr', () => {
1212 } )
1313 describe ( 'initial content' , ( ) => {
1414 it ( 'should only have fields with defaults' , ( ) => {
15- const expected = 'cff -version: 1.2.0\ntype: software\n' + generatedBy
15+ const expected = 'authors: []\ncff -version: 1.2.0\ntype: software\n' + generatedBy
1616 expect ( cffstr . value ) . toEqual ( expected )
1717 } )
1818 } )
@@ -23,7 +23,7 @@ describe('useCffstr', () => {
2323 } )
2424
2525 it ( 'should have title' , ( ) => {
26- const expected = 'cff -version: 1.2.0\ntitle: sometitle\ntype: software\n' + generatedBy
26+ const expected = 'authors: []\ncff -version: 1.2.0\ntitle: sometitle\ntype: software\n' + generatedBy
2727 expect ( cffstr . value ) . toEqual ( expected )
2828 } )
2929 } )
@@ -34,7 +34,7 @@ describe('useCffstr', () => {
3434 } )
3535
3636 it ( 'should have a keyword' , ( ) => {
37- const expected = 'cff -version: 1.2.0\nkeywords:\n - keyword1\ntype: software\n' + generatedBy
37+ const expected = 'authors: []\ncff -version: 1.2.0\nkeywords:\n - keyword1\ntype: software\n' + generatedBy
3838 expect ( cffstr . value ) . toEqual ( expected )
3939 } )
4040 } )
@@ -44,8 +44,8 @@ describe('useCffstr', () => {
4444 cff . setIdentifiers ( [ { type : 'doi' , value : '10.5281/zenodo.5171937' } ] )
4545 } )
4646
47- it ( 'should have a keyword ' , ( ) => {
48- const expected = 'cff -version: 1.2.0\nidentifiers:\n - type: doi\n value: 10.5281/zenodo.5171937\ntype: software\n' + generatedBy
47+ it ( 'should have a identifier ' , ( ) => {
48+ const expected = 'authors: []\ncff -version: 1.2.0\nidentifiers:\n - type: doi\n value: 10.5281/zenodo.5171937\ntype: software\n' + generatedBy
4949 expect ( cffstr . value ) . toEqual ( expected )
5050 } )
5151 } )
0 commit comments