@@ -83,7 +83,7 @@ describe('RunContext', () => {
8383
8484 context
8585 . on ( 'ready' , async ( ) => {
86- assert ( await context . env . get ( 'simple:app' ) ) ;
86+ assert . ok ( await context . env . get ( 'simple:app' ) ) ;
8787 } )
8888 . on ( 'end' , done ) ;
8989 } ) ,
@@ -118,7 +118,7 @@ describe('RunContext', () => {
118118 'accept generator constructor parameter (and assign gen:test as namespace)' ,
119119 promisify ( done => {
120120 context . on ( 'ready' , async ( ) => {
121- assert ( await context . env . get ( 'gen:test' ) ) ;
121+ assert . ok ( await context . env . get ( 'gen:test' ) ) ;
122122 done ( ) ;
123123 } ) ;
124124 } ) ,
@@ -176,7 +176,7 @@ describe('RunContext', () => {
176176 context . cleanTestDirectory ( ) ;
177177 assert . fail ( ) ;
178178 } catch ( error ) {
179- assert ( error . message . includes ( 'Cleanup test dir called with false tmpdir option.' ) ) ;
179+ assert . ok ( error . message . includes ( 'Cleanup test dir called with false tmpdir option.' ) ) ;
180180 }
181181 } ) ;
182182
@@ -374,12 +374,12 @@ describe('RunContext', () => {
374374 ) ;
375375
376376 it ( 'throws error at additional calls with dirPath' , ( ) => {
377- assert ( context . inDir ( temporaryDirectory ) ) ;
377+ assert . ok ( context . inDir ( temporaryDirectory ) ) ;
378378 try {
379379 context . inDir ( temporaryDirectory ) ;
380380 assert . fail ( ) ;
381381 } catch ( error ) {
382- assert ( error . message . includes ( 'Test directory has already been set.' ) ) ;
382+ assert . ok ( error . message . includes ( 'Test directory has already been set.' ) ) ;
383383 }
384384 } ) ;
385385 } ) ;
@@ -455,7 +455,7 @@ describe('RunContext', () => {
455455 } ) ;
456456
457457 it ( 'should set inDirSet & targetDirectory' , ( ) => {
458- assert ( ! context . targetDirectory ) ;
458+ assert . ok ( ! context . targetDirectory ) ;
459459 context . cd ( temporaryDirectory ) ;
460460 assert . equal ( context . targetDirectory , temporaryDirectory ) ;
461461 } ) ;
@@ -472,7 +472,7 @@ describe('RunContext', () => {
472472 context . cd ( path . join ( temporaryDirectory , 'NOT_EXIST' ) ) ;
473473 assert . fail ( ) ;
474474 } catch ( error ) {
475- assert ( error . message . includes ( temporaryDirectory ) ) ;
475+ assert . ok ( error . message . includes ( temporaryDirectory ) ) ;
476476 }
477477 } ) ;
478478 } ) ;
@@ -494,7 +494,7 @@ describe('RunContext', () => {
494494 promisify ( done => {
495495 const callback = mock . fn ( function ( dir ) {
496496 assert . equal ( this , context ) ;
497- assert ( dir . includes ( tempDirectory ) ) ;
497+ assert . ok ( dir . includes ( tempDirectory ) ) ;
498498 } ) ;
499499
500500 context . inTmpDir ( callback ) . on ( 'end' , done ) ;
@@ -735,8 +735,8 @@ describe('RunContext', () => {
735735 describe ( '#withMockedGenerators()' , ( ) => {
736736 it ( 'creates mocked generator' , async ( ) => {
737737 await context . withMockedGenerators ( [ 'foo:bar' ] ) . build ( ) ;
738- assert ( await context . env . get ( 'foo:bar' ) ) ;
739- assert ( context . mockedGenerators [ 'foo:bar' ] ) ;
738+ assert . ok ( await context . env . get ( 'foo:bar' ) ) ;
739+ assert . ok ( context . mockedGenerators [ 'foo:bar' ] ) ;
740740 } ) ;
741741 } ) ;
742742
@@ -745,22 +745,22 @@ describe('RunContext', () => {
745745 'register paths' ,
746746 promisify ( done => {
747747 context . withGenerators ( [ require . resolve ( './fixtures/generator-simple/app' ) ] ) . on ( 'ready' , async ( ) => {
748- assert ( await context . env . get ( 'simple:app' ) ) ;
748+ assert . ok ( await context . env . get ( 'simple:app' ) ) ;
749749 done ( ) ;
750750 } ) ;
751751 } ) ,
752752 ) ;
753753
754754 it ( 'register paths with namespaces' , async ( ) => {
755755 await context . withGenerators ( [ [ require . resolve ( './fixtures/generator-simple/app' ) , { namespace : 'foo:bar' } ] ] ) . build ( ) ;
756- assert ( await context . env . get ( 'foo:bar' ) ) ;
756+ assert . ok ( await context . env . get ( 'foo:bar' ) ) ;
757757 } ) ;
758758
759759 it (
760760 'register mocked generator' ,
761761 promisify ( done => {
762762 context . withGenerators ( [ [ helpers . createDummyGenerator ( ) , { namespace : 'dummy:gen' } ] ] ) . on ( 'ready' , async ( ) => {
763- assert ( await context . env . get ( 'dummy:gen' ) ) ;
763+ assert . ok ( await context . env . get ( 'dummy:gen' ) ) ;
764764 done ( ) ;
765765 } ) ;
766766 } ) ,
@@ -773,8 +773,8 @@ describe('RunContext', () => {
773773 . withGenerators ( [ require . resolve ( './fixtures/generator-simple/app' ) ] )
774774 . withGenerators ( [ [ helpers . createDummyGenerator ( ) , { namespace : 'dummy:gen' } ] ] )
775775 . on ( 'ready' , async ( ) => {
776- assert ( await context . env . get ( 'dummy:gen' ) ) ;
777- assert ( await context . env . get ( 'simple:app' ) ) ;
776+ assert . ok ( await context . env . get ( 'dummy:gen' ) ) ;
777+ assert . ok ( await context . env . get ( 'simple:app' ) ) ;
778778 done ( ) ;
779779 } ) ;
780780 } ) ,
@@ -853,7 +853,7 @@ describe('RunContext', () => {
853853 return environment ;
854854 } )
855855 . on ( 'ready' , async ( ) => {
856- assert ( await context . env . get ( 'simple:app' ) ) ;
856+ assert . ok ( await context . env . get ( 'simple:app' ) ) ;
857857 done ( ) ;
858858 } ) ;
859859 } ) ,
0 commit comments