File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,14 @@ describe(`pseudo tests`, () => {
102102 const files = bobProject . createRules ( ) ;
103103
104104 expect ( files [ `Rules.mk` ] ) . toBeDefined ( ) ;
105- expect ( files [ `Rules.mk` ] ) . toBe ( `SUBDIRS = qddssrc qrpglesrc qsqlsrc qtestsrc` ) ;
105+ expect ( files [ `Rules.mk` ] . startsWith ( `SUBDIRS = ` ) ) . toBeTruthy ( ) ;
106+
107+ const subdirs = files [ `Rules.mk` ] . split ( `SUBDIRS = ` ) [ 1 ] . trim ( ) . split ( ` ` ) ;
108+ expect ( subdirs . length ) . toBe ( 4 ) ;
109+ expect ( subdirs ) . toContain ( `qddssrc` ) ;
110+ expect ( subdirs ) . toContain ( `qrpglesrc` ) ;
111+ expect ( subdirs ) . toContain ( `qsqlsrc` ) ;
112+ expect ( subdirs ) . toContain ( `qtestsrc` ) ;
106113
107114 expect ( files [ path . join ( `qtestsrc` , `Rules.mk` ) ] ) . toBe ( `TEMPDETT.MODULE: empdett.test.sqlrpgle qrpgleref/empdet.rpgleinc EMPLOYEE.FILE DEPARTMENT.FILE APP.BNDDIR` )
108115
You can’t perform that action at this time.
0 commit comments