@@ -5,6 +5,7 @@ import { MakeProject } from '../src/builders/make';
55import { setupFixture } from './fixtures/projects' ;
66import { ReadFileSystem } from '../src/readFileSystem' ;
77import { BobProject } from '../src/builders/bob' ;
8+ import path from 'path' ;
89
910describe ( `pseudo tests` , ( ) => {
1011 const project = setupFixture ( `cs_with_bnddir` ) ;
@@ -79,11 +80,11 @@ describe(`pseudo tests`, () => {
7980 expect ( files [ `Rules.mk` ] ) . toBeDefined ( ) ;
8081 expect ( files [ `Rules.mk` ] ) . toBe ( `SUBDIRS = qddssrc qrpglesrc qsqlsrc qtestsrc` ) ;
8182
82- expect ( files [ `qtestsrc/ Rules.mk` ] ) . toBe ( `EMPDETT.MODULE: empdett.test.sqlrpgle qrpgleref/empdet.rpgleinc EMPLOYEE.FILE DEPARTMENT.FILE APP.BNDDIR` )
83-
84- expect ( files [ `qrpglesrc/ Rules.mk` ] ) . toContain ( `EMPDET.MODULE: empdet.sqlrpgle qrpgleref/empdet.rpgleinc EMPLOYEE.FILE DEPARTMENT.FILE` ) ;
85- expect ( files [ `qrpglesrc/ Rules.mk` ] ) . toContain ( `EMPDET.SRVPGM: empdet.bnd EMPDET.MODULE` ) ;
86- expect ( files [ `qrpglesrc/ Rules.mk` ] ) . toContain ( `EMPLOYEES.PGM: employees.pgm.sqlrpgle qrpgleref/constants.rpgleinc qrpgleref/empdet.rpgleinc EMPLOYEE.FILE EMPS.FILE APP.BNDDIR` ) ;
87- expect ( files [ `qrpglesrc/ Rules.mk` ] ) . toContain ( `APP.BNDDIR: app.bnddir EMPDET.SRVPGM` ) ;
83+ expect ( files [ path . join ( `qtestsrc` , ` Rules.mk`) ] ) . toBe ( `EMPDETT.MODULE: empdett.test.sqlrpgle qrpgleref/empdet.rpgleinc EMPLOYEE.FILE DEPARTMENT.FILE APP.BNDDIR` )
84+
85+ expect ( files [ path . join ( `qrpglesrc` , ` Rules.mk`) ] ) . toContain ( `EMPDET.MODULE: empdet.sqlrpgle qrpgleref/empdet.rpgleinc EMPLOYEE.FILE DEPARTMENT.FILE` ) ;
86+ expect ( files [ path . join ( `qrpglesrc` , ` Rules.mk`) ] ) . toContain ( `EMPDET.SRVPGM: empdet.bnd EMPDET.MODULE` ) ;
87+ expect ( files [ path . join ( `qrpglesrc` , ` Rules.mk`) ] ) . toContain ( `EMPLOYEES.PGM: employees.pgm.sqlrpgle qrpgleref/constants.rpgleinc qrpgleref/empdet.rpgleinc EMPLOYEE.FILE EMPS.FILE APP.BNDDIR` ) ;
88+ expect ( files [ path . join ( `qrpglesrc` , ` Rules.mk`) ] ) . toContain ( `APP.BNDDIR: app.bnddir EMPDET.SRVPGM` ) ;
8889 } ) ;
8990} ) ;
0 commit comments