@@ -558,18 +558,18 @@ describe('buildIssueBody', () => {
558558 } ) ;
559559
560560 it ( 'links directly to the string in the editor when slug, file.id and string.id are present' , ( ) => {
561- const issue = { ...baseIssue , languageId : 'fr' , string : { text : 'Source' , id : 999 , file : { id : 5842 } } } ;
561+ const issue = { ...baseIssue , languageId : 'fr' , string : { text : 'Source' , id : 999 , fileId : 5842 } } ;
562562 const body = buildIssueBody ( issue , projectId , 'my-project' ) ;
563563 expect ( body ) . toContain ( 'https://crowdin.com/editor/my-project/5842/en-fr?view=comfortable#999' ) ;
564564 } ) ;
565565
566566 it ( 'links directly to the editor with a compound language code normalized (zh-CN → en-zhcn)' , ( ) => {
567- const issue = { ...baseIssue , languageId : 'zh-CN' , string : { text : 'Source' , id : 91860 , file : { id : 5842 } } } ;
567+ const issue = { ...baseIssue , languageId : 'zh-CN' , string : { text : 'Source' , id : 91860 , fileId : 5842 } } ;
568568 const body = buildIssueBody ( issue , projectId , 'my-project' ) ;
569569 expect ( body ) . toContain ( 'https://crowdin.com/editor/my-project/5842/en-zhcn?view=comfortable#91860' ) ;
570570 } ) ;
571571
572- it ( 'falls back to project page when file.id is absent' , ( ) => {
572+ it ( 'falls back to project page when fileId is absent' , ( ) => {
573573 const issue = { ...baseIssue , languageId : 'fr' , string : { text : 'Source' , id : 999 } } ;
574574 const body = buildIssueBody ( issue , projectId , 'my-project' ) ;
575575 expect ( body ) . toContain ( 'https://crowdin.com/project/my-project' ) ;
0 commit comments