@@ -102,9 +102,14 @@ describe('easysync-assembler', function () {
102
102
'attr5,5' ,
103
103
] ) ;
104
104
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
+ }
108
113
assem . endDocument ( ) ;
109
114
expect ( assem . toString ( ) ) . to . equal ( '*3*4*5-8*1*4*5-4' ) ;
110
115
} ) ;
@@ -119,9 +124,14 @@ describe('easysync-assembler', function () {
119
124
'attr5,5' ,
120
125
] ) ;
121
126
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
+ }
125
135
assem . endDocument ( ) ;
126
136
expect ( assem . toString ( ) ) . to . equal ( '*3*4*5|3-f*1*4*5|1-1*1*4*5-4' ) ;
127
137
} ) ;
0 commit comments