@@ -65,11 +65,26 @@ describe('action', () => {
6565 17 ,
6666 'Using callback file in runtime path: NONE'
6767 )
68+ expect ( debugMock ) . toHaveBeenNthCalledWith ( 18 , 'Adding copy path: NONE' )
69+ expect ( debugMock ) . toHaveBeenNthCalledWith ( 19 , 'Adding ignore path: NONE' )
70+ expect ( debugMock ) . toHaveBeenNthCalledWith ( 20 , 'Adding a path to skip: NONE' )
71+ expect ( debugMock ) . toHaveBeenNthCalledWith (
72+ 21 ,
73+ 'Input for obfuscate option is not valid!'
74+ )
75+ expect ( debugMock ) . toHaveBeenNthCalledWith (
76+ 22 ,
77+ 'Using obfuscate option: none'
78+ )
79+ expect ( debugMock ) . toHaveBeenNthCalledWith (
80+ 23 ,
81+ 'Adding obfuscation-key path: NONE'
82+ )
6883
6984 // No errors
70- expect ( debugMock ) . toHaveBeenNthCalledWith ( 18 , 0 )
71- expect ( debugMock ) . toHaveBeenNthCalledWith ( 19 , '' )
72- expect ( debugMock ) . toHaveBeenNthCalledWith ( 20 , '' )
85+ expect ( debugMock ) . toHaveBeenNthCalledWith ( 24 , 0 )
86+ expect ( debugMock ) . toHaveBeenNthCalledWith ( 25 , '' )
87+ expect ( debugMock ) . toHaveBeenNthCalledWith ( 26 , '' )
7388
7489 expect ( setOutputMock ) . toHaveBeenCalledWith (
7590 'status' ,
@@ -128,11 +143,36 @@ describe('action', () => {
128143 17 ,
129144 'Using callback file in runtime path: public/ioncube.php'
130145 )
146+ expect ( debugMock ) . toHaveBeenNthCalledWith (
147+ 18 ,
148+ 'Creating target file/directory if not exists'
149+ )
150+ expect ( debugMock ) . toHaveBeenNthCalledWith (
151+ 19 ,
152+ 'Replacing target file/directory'
153+ )
154+ expect ( debugMock ) . toHaveBeenNthCalledWith ( 20 , 'Adding copy path: NONE' )
155+ expect ( debugMock ) . toHaveBeenNthCalledWith (
156+ 21 ,
157+ 'Adding ignore path: */cache/*'
158+ )
159+ expect ( debugMock ) . toHaveBeenNthCalledWith (
160+ 22 ,
161+ 'Adding a path to skip: */vendor/*'
162+ )
163+ expect ( debugMock ) . toHaveBeenNthCalledWith (
164+ 23 ,
165+ 'Using obfuscate option: classes'
166+ )
167+ expect ( debugMock ) . toHaveBeenNthCalledWith (
168+ 24 ,
169+ 'Adding obfuscation-key path: CHANGEME'
170+ )
131171
132172 // No errors
133- expect ( debugMock ) . toHaveBeenNthCalledWith ( 18 , 0 )
134- expect ( debugMock ) . toHaveBeenNthCalledWith ( 19 , '' )
135- expect ( debugMock ) . toHaveBeenNthCalledWith ( 20 , '' )
173+ expect ( debugMock ) . toHaveBeenNthCalledWith ( 25 , 0 )
174+ expect ( debugMock ) . toHaveBeenNthCalledWith ( 26 , '' )
175+ expect ( debugMock ) . toHaveBeenNthCalledWith ( 27 , '' )
136176
137177 expect ( setOutputMock ) . toHaveBeenCalledWith (
138178 'status' ,
0 commit comments