@@ -152,32 +152,6 @@ describe('zodObjectInterpreter', () => {
152152 } ) ;
153153} ) ;
154154
155- describe ( 'applyLineTransformsSet' , ( ) => {
156- it ( 'should parse a line with a single set' , ( ) => {
157- expect ( applyLineTransformsSet ( 'SET(1, 2, 3)' ) ) . toBe ( 'SET(1~~ 2~~ 3)' ) ;
158- } ) ;
159- it ( 'should parse a line with a several sets and a number' , ( ) => {
160- expect ( applyLineTransformsSet ( 'SET(1, 2, 3), 5, SET(7, 2)' ) ) . toBe ( 'SET(1~~ 2~~ 3), 5, SET(7~~ 2)' ) ;
161- } ) ;
162- it ( 'should return the line unchanged, if the line does not contain a set' , ( ) => {
163- expect ( applyLineTransformsSet ( '1, 2, 3' ) ) . toBe ( '1, 2, 3' ) ;
164- } ) ;
165- } ) ;
166-
167- describe ( 'applyLineTransformsArray' , ( ) => {
168- it ( 'should parse a line with a single set' , ( ) => {
169- expect ( applyLineTransformsArray ( 'RECORD_ARRAY(test1:1,test2:2;)' ) ) . toBe ( 'RECORD_ARRAY(test1:1++test2:2;)' ) ;
170- } ) ;
171- it ( 'should parse a line with a several sets and a number' , ( ) => {
172- expect ( applyLineTransformsArray ( 'RECORD_ARRAY(test1:1,test2:2;), 3, RECORD_ARRAY(test3:3,test4:4;)' ) ) . toBe (
173- 'RECORD_ARRAY(test1:1++test2:2;), 3, RECORD_ARRAY(test3:3++test4:4;)'
174- ) ;
175- } ) ;
176- it ( 'should return the line unchanged, if the line does not contain a set' , ( ) => {
177- expect ( applyLineTransformsArray ( '1, 2, 3' ) ) . toBe ( '1, 2, 3' ) ;
178- } ) ;
179- } ) ;
180-
181155describe ( 'processInstrumentCSV' , ( ) => {
182156 const mockInstrument = { validationSchema : z . object ( { foo : z . string ( ) } ) } satisfies Pick <
183157 AnyUnilingualFormInstrument ,
0 commit comments