File tree Expand file tree Collapse file tree 2 files changed +1
-13
lines changed 
src/SIL.XForge.Scripture/ClientApp/src/app/translate/editor Expand file tree Collapse file tree 2 files changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -4660,9 +4660,6 @@ class TestEnvironment {
46604660    translateConfig : { 
46614661      translationSuggestionsEnabled : true , 
46624662      defaultNoteTagId : 2 , 
4663-       draftConfig : { 
4664-         usfmConfig : { } 
4665-       } , 
46664663      source : { 
46674664        paratextId : 'source01' , 
46684665        projectRef : 'project02' , 
@@ -4908,9 +4905,6 @@ class TestEnvironment {
49084905    when ( mockedDraftGenerationService . draftExists ( anything ( ) ,  anything ( ) ,  anything ( ) ) ) . thenReturn ( of ( true ) ) ; 
49094906    when ( mockedPermissionsService . isUserOnProject ( anything ( ) ) ) . thenResolve ( true ) ; 
49104907    when ( mockedFeatureFlagService . newDraftHistory ) . thenReturn ( createTestFeatureFlag ( false ) ) ; 
4911-     when ( mockedFeatureFlagService . usfmFormat ) . thenReturn ( createTestFeatureFlag ( true ) ) ; 
4912-     when ( mockedDraftOptionsService . areFormattingOptionsAvailableButUnselected ( ) ) . thenReturn ( false ) ; 
4913-     when ( mockedDraftOptionsService . areFormattingOptionsSupportedForBuild ( anything ( ) ) ) . thenReturn ( true ) ; 
49144908    when ( mockedLynxWorkspaceService . rawInsightSource$ ) . thenReturn ( of ( [ ] ) ) ; 
49154909
49164910    this . realtimeService  =  TestBed . inject ( TestRealtimeService ) ; 
@@ -5152,9 +5146,6 @@ class TestEnvironment {
51525146        data . translateConfig ?. source 
51535147      ) ; 
51545148    } 
5155-     if  ( data . translateConfig ?. draftConfig  !=  null )  { 
5156-       projectProfileData . translateConfig . draftConfig  =  data . translateConfig . draftConfig  as  any ; 
5157-     } 
51585149    if  ( data . biblicalTermsConfig  !==  undefined )  { 
51595150      projectProfileData . biblicalTermsConfig  =  merge ( projectProfileData . biblicalTermsConfig ,  data . biblicalTermsConfig ) ; 
51605151    } 
Original file line number Diff line number Diff line change @@ -308,8 +308,7 @@ class TestEnvironment {
308308        {  bookNum : 41 ,  chapters : [ {  number : 1 ,  hasDraft : true  } ]  } 
309309      ] , 
310310      translateConfig : { 
311-         preTranslate : true , 
312-         draftConfig : {  usfmConfig : { }  } 
311+         preTranslate : true 
313312      } , 
314313      userRoles : TestEnvironment . rolesByUser , 
315314      biblicalTermsConfig : {  biblicalTermsEnabled : true  } 
@@ -319,10 +318,8 @@ class TestEnvironment {
319318  constructor ( explicitProjectDoc ?: SFProjectProfileDoc )  { 
320319    const  projectDoc : SFProjectProfileDoc  =  explicitProjectDoc  ??  this . projectDoc ; 
321320    when ( activatedProjectMock . projectDoc$ ) . thenReturn ( of ( projectDoc ) ) ; 
322-     when ( activatedProjectMock . projectDoc ) . thenReturn ( projectDoc  as  any ) ; 
323321    when ( mockUserService . currentUserId ) . thenReturn ( 'user01' ) ; 
324322    when ( mockPermissionsService . canAccessDrafts ( anything ( ) ,  anything ( ) ) ) . thenReturn ( true ) ; 
325-     when ( mockDraftOptionsService . areFormattingOptionsAvailableButUnselected ( ) ) . thenReturn ( false ) ; 
326323    service  =  TestBed . inject ( EditorTabMenuService ) ; 
327324  } 
328325
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments