@@ -159,7 +159,7 @@ describe('generators.Base (actions/fs)', () => {
159159 } ) ;
160160
161161 it ( 'exists on the generator' , ( ) => {
162- assert ( operation . name in Base . prototype ) ;
162+ assert . ok ( operation . name in Base . prototype ) ;
163163 } ) ;
164164
165165 it ( 'returns the correct value' , ( ) => {
@@ -174,20 +174,20 @@ describe('generators.Base (actions/fs)', () => {
174174
175175 it . skip ( 'handles the second parameter' , ( ) => {
176176 if ( operation . second && operation . first === operation . second ) {
177- assert ( secondArgumentHandler . calledTwice ) ;
177+ assert . ok ( secondArgumentHandler . calledTwice ) ;
178178 expect ( secondArgumentHandler . getCall ( 1 ) . args [ 0 ] ) . toMatch ( passedArg2 ) ;
179179 } else if ( operation . second ) {
180- assert ( secondArgumentHandler . calledOnce ) ;
180+ assert . ok ( secondArgumentHandler . calledOnce ) ;
181181 expect ( secondArgumentHandler . getCall ( 0 ) . args [ 0 ] ) . toMatch ( passedArg2 ) ;
182182 if ( firstArgumentHandler ) {
183- assert ( firstArgumentHandler . calledOnce ) ;
183+ assert . ok ( firstArgumentHandler . calledOnce ) ;
184184 }
185185 }
186186 } ) ;
187187
188188 it ( 'calls fs with correct arguments' , ( ) => {
189189 const destCall = base . fs [ operation . dest ] ;
190- assert ( destCall . calledOnce ) ;
190+ assert . ok ( destCall . calledOnce ) ;
191191 const call = destCall . getCall ( 0 ) ;
192192 // First argument should be the trated first arguments
193193 expect ( call . args [ 0 ] ) . toMatch ( operation . first ? baseReturns [ operation . first ] : passedArg1 ) ;
@@ -241,7 +241,7 @@ describe('generators.Base (actions/fs)', () => {
241241 gen . renderTemplate ( 'a' , 'b' ) ;
242242 const { copyTpl } = gen . fs ;
243243
244- assert ( copyTpl . calledOnce ) ;
244+ assert . ok ( copyTpl . calledOnce ) ;
245245 const firsCall = copyTpl . getCall ( 0 ) ;
246246 assert . equal ( firsCall . args [ ARG_DATA ] , getAllReturn ) ;
247247 } ) ;
@@ -250,7 +250,7 @@ describe('generators.Base (actions/fs)', () => {
250250 gen . renderTemplate ( 'a' , 'b' , 'test' ) ;
251251 const { copyTpl } = gen . fs ;
252252
253- assert ( copyTpl . calledOnce ) ;
253+ assert . ok ( copyTpl . calledOnce ) ;
254254 const firsCall = copyTpl . getCall ( 0 ) ;
255255 assert . equal ( firsCall . args [ ARG_DATA ] , getPathReturn ) ;
256256 } ) ;
@@ -263,7 +263,7 @@ describe('generators.Base (actions/fs)', () => {
263263 gen . renderTemplate ( source , destination , data ) ;
264264 const { copyTpl } = gen . fs ;
265265
266- assert ( copyTpl . calledOnce ) ;
266+ assert . ok ( copyTpl . calledOnce ) ;
267267 const firsCall = copyTpl . getCall ( 0 ) ;
268268 assert . equal ( firsCall . args [ ARG_FROM ] , path . join ( ...source ) ) ;
269269 assert . equal ( firsCall . args [ ARG_TO ] , path . join ( ...destination ) ) ;
@@ -300,7 +300,7 @@ describe('generators.Base (actions/fs)', () => {
300300 gen . renderTemplateAsync ( 'a' , 'b' ) ;
301301 const { copyTplAsync } = gen . fs ;
302302
303- assert ( copyTplAsync . calledOnce ) ;
303+ assert . ok ( copyTplAsync . calledOnce ) ;
304304 const firsCall = copyTplAsync . getCall ( 0 ) ;
305305 assert . equal ( firsCall . args [ ARG_DATA ] , getAllReturn ) ;
306306 } ) ;
@@ -309,7 +309,7 @@ describe('generators.Base (actions/fs)', () => {
309309 await gen . renderTemplateAsync ( 'a' , 'b' , 'test' ) ;
310310 const { copyTplAsync } = gen . fs ;
311311
312- assert ( copyTplAsync . calledOnce ) ;
312+ assert . ok ( copyTplAsync . calledOnce ) ;
313313 const firsCall = copyTplAsync . getCall ( 0 ) ;
314314 assert . equal ( firsCall . args [ ARG_DATA ] , getPathReturn ) ;
315315 } ) ;
@@ -322,7 +322,7 @@ describe('generators.Base (actions/fs)', () => {
322322 gen . renderTemplateAsync ( source , destination , data ) ;
323323 const { copyTplAsync } = gen . fs ;
324324
325- assert ( copyTplAsync . calledOnce ) ;
325+ assert . ok ( copyTplAsync . calledOnce ) ;
326326 const firsCall = copyTplAsync . getCall ( 0 ) ;
327327 assert . equal ( firsCall . args [ ARG_FROM ] , path . join ( ...source ) ) ;
328328 assert . equal ( firsCall . args [ ARG_TO ] , path . join ( ...destination ) ) ;
0 commit comments