@@ -11,12 +11,12 @@ describe('submitContactInfo', () => {
1111 )
1212 } )
1313
14- test ( 'should return Contact result successfully' , async ( ) => {
14+ test ( 'should return Contact result successfully with targetId ' , async ( ) => {
1515 const contactDTO : ContactDTO = {
1616 targetId : 1 ,
1717 subject : 'Data Question' ,
1818 body : 'Please help me understand your data. Thank you!' ,
19- fromEmail : 'example@gmail.com '
19+ fromEmail : 'example@dataverse.org '
2020 }
2121
2222 let contactInfo : Contact [ ] = [ ]
@@ -26,7 +26,7 @@ describe('submitContactInfo', () => {
2626 throw new Error ( 'Contact info should be submitted' )
2727 } finally {
2828 expect ( contactInfo ) . toBeDefined ( )
29- expect ( contactInfo [ 0 ] . fromEmail ) . toEqual ( 'example@gmail.com ' )
29+ expect ( contactInfo [ 0 ] . fromEmail ) . toEqual ( 'example@dataverse.org ' )
3030 expect ( contactInfo [ 0 ] . subject ) . toEqual ( expect . any ( String ) )
3131 expect ( contactInfo [ 0 ] . body ) . toEqual ( expect . any ( String ) )
3232 }
@@ -36,7 +36,7 @@ describe('submitContactInfo', () => {
3636 const contactDTO : ContactDTO = {
3737 subject : 'General Inquiry' ,
3838 body : 'I have a general question.' ,
39- fromEmail : 'example@gmail.com '
39+ fromEmail : 'example@dataverse.org '
4040 }
4141
4242 let contactInfo : Contact [ ] = [ ]
@@ -46,18 +46,18 @@ describe('submitContactInfo', () => {
4646 throw new Error ( 'Contact info should be submitted even if target id is missing' )
4747 } finally {
4848 expect ( contactInfo ) . toBeDefined ( )
49- expect ( contactInfo [ 0 ] . fromEmail ) . toEqual ( 'example@gmail.com ' )
49+ expect ( contactInfo [ 0 ] . fromEmail ) . toEqual ( 'example@dataverse.org ' )
5050 expect ( contactInfo [ 0 ] . subject ) . toEqual ( expect . any ( String ) )
5151 expect ( contactInfo [ 0 ] . body ) . toEqual ( expect . any ( String ) )
5252 }
5353 } )
5454
55- test ( 'should return Contact when contact info is successfully submitted' , async ( ) => {
55+ test ( 'should return Contact when contact info is successfully submitted with identifier ' , async ( ) => {
5656 const test2ContactDTO : ContactDTO = {
5757 identifier : 'root' ,
5858 subject : 'Data Question' ,
5959 body : 'Please help me understand your data. Thank you!' ,
60- fromEmail : 'example@gmail.com '
60+ fromEmail : 'example@dataverse.org '
6161 }
6262 const contactInfo = await submitContactInfo . execute ( test2ContactDTO )
6363
@@ -72,7 +72,7 @@ describe('submitContactInfo', () => {
7272 targetId : 0 ,
7373 subject : '' ,
7474 body : '' ,
75- fromEmail : 'example@gmail.com '
75+ fromEmail : 'example@dataverse.org '
7676 }
7777 const expectedError = new WriteError ( `[400] Feedback target object not found.` )
7878 await expect ( submitContactInfo . execute ( contactDTO ) ) . rejects . toThrow ( expectedError )
0 commit comments