@@ -102,9 +102,14 @@ describe('easysync-assembler', function () {
102102 'attr5,5' ,
103103 ] ) ;
104104
105- assem . appendOpWithText ( '-' , 'test' , '*3*4*5' , pool ) ;
106- assem . appendOpWithText ( '-' , 'test' , '*3*4*5' , pool ) ;
107- assem . appendOpWithText ( '-' , 'test' , '*1*4*5' , pool ) ;
105+ padutils . warnDeprecated . disabledForTestingOnly = true ;
106+ try {
107+ assem . appendOpWithText ( '-' , 'test' , '*3*4*5' , pool ) ;
108+ assem . appendOpWithText ( '-' , 'test' , '*3*4*5' , pool ) ;
109+ assem . appendOpWithText ( '-' , 'test' , '*1*4*5' , pool ) ;
110+ } finally {
111+ delete padutils . warnDeprecated . disabledForTestingOnly ;
112+ }
108113 assem . endDocument ( ) ;
109114 expect ( assem . toString ( ) ) . to . equal ( '*3*4*5-8*1*4*5-4' ) ;
110115 } ) ;
@@ -119,9 +124,14 @@ describe('easysync-assembler', function () {
119124 'attr5,5' ,
120125 ] ) ;
121126
122- assem . appendOpWithText ( '-' , 'test\ntest' , '*3*4*5' , pool ) ;
123- assem . appendOpWithText ( '-' , '\ntest\n' , '*3*4*5' , pool ) ;
124- assem . appendOpWithText ( '-' , '\ntest' , '*1*4*5' , pool ) ;
127+ padutils . warnDeprecated . disabledForTestingOnly = true ;
128+ try {
129+ assem . appendOpWithText ( '-' , 'test\ntest' , '*3*4*5' , pool ) ;
130+ assem . appendOpWithText ( '-' , '\ntest\n' , '*3*4*5' , pool ) ;
131+ assem . appendOpWithText ( '-' , '\ntest' , '*1*4*5' , pool ) ;
132+ } finally {
133+ delete padutils . warnDeprecated . disabledForTestingOnly ;
134+ }
125135 assem . endDocument ( ) ;
126136 expect ( assem . toString ( ) ) . to . equal ( '*3*4*5|3-f*1*4*5|1-1*1*4*5-4' ) ;
127137 } ) ;
0 commit comments