File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,8 +34,11 @@ describe('eoc', () => {
3434describe ( 'eoc' , ( ) => {
3535 before ( weAreOnline ) ;
3636 it ( 'fails due version mismatch if different --pin provided' , ( done ) => {
37- const stdout = runSync ( [ '--pin=29.9.4' , 'clean' ] ) ;
38- assert ( stdout . includes ( "Version mismatch: you are running eoc 0.0.0, but --pin option requires 29.9.4" ) ) ;
37+ assert . throws (
38+ ( ) => { runSync ( [ '--pin=29.9.4' , 'clean' ] ) ; } ,
39+ / V e r s i o n m i s m a t c h : y o u a r e r u n n i n g e o c 0 .0 .0 , b u t - - p i n o p t i o n r e q u i r e s 2 9 .9 .4 /
40+ ) ;
41+ done ( ) ;
3942 } ) ;
4043} ) ;
4144
@@ -44,6 +47,7 @@ describe('eoc', () => {
4447 it ( 'cleans successfully when versions match with --pin' , ( done ) => {
4548 const stdout = runSync ( [ '--pin=0.0.0' , 'clean' ] ) ;
4649 assert ( stdout . includes ( "The directory .eoc does not exist, no need to delete it" ) ) ;
50+ done ( ) ;
4751 } ) ;
4852} ) ;
4953
@@ -52,5 +56,6 @@ describe('eoc', () => {
5256 it ( 'cleans successfully when if --pin not provided' , ( done ) => {
5357 const stdout = runSync ( [ 'clean' ] ) ;
5458 assert ( stdout . includes ( "The directory .eoc does not exist, no need to delete it" ) ) ;
59+ done ( ) ;
5560 } ) ;
5661} ) ;
You can’t perform that action at this time.
0 commit comments