@@ -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_srvpgm` ) ;
@@ -62,12 +63,11 @@ describe(`pseudo tests`, () => {
6263 expect ( files [ `Rules.mk` ] ) . toBeDefined ( ) ;
6364 expect ( files [ `Rules.mk` ] ) . toBe ( `SUBDIRS = qddssrc qrpglesrc qtestsrc` ) ;
6465
65- expect ( files [ `qtestsrc/Rules.mk` ] ) . toBe ( `EMPTEST.MODULE: emptest.test.sqlrpgle qrpgleref/empdet.rpgleinc EMPLOYEE.FILE DEPARTMENT.FILE EMPDET.MODULE` )
66-
67- console . log ( files [ `qrpglesrc/Rules.mk` ] ) ;
68- expect ( files [ `qrpglesrc/Rules.mk` ] ) . toContain ( `EMPLOYEES.MODULE: employees.pgm.sqlrpgle qrpgleref/constants.rpgleinc qrpgleref/empdet.rpgleinc` ) ;
69- expect ( files [ `qrpglesrc/Rules.mk` ] ) . toContain ( `EMPLOYEES.PGM: EMPLOYEE.FILE EMPS.FILE EMPDET.MODULE EMPLOYEES.MODULE` ) ;
70- expect ( files [ `qrpglesrc/Rules.mk` ] ) . not . toContain ( `EMPDET.SRVPGM` ) ; // Ensure no service program is created
66+ expect ( files [ path . join ( `qtestsrc` , `Rules.mk` ) ] ) . toBe ( `EMPTEST.MODULE: emptest.test.sqlrpgle qrpgleref/empdet.rpgleinc EMPLOYEE.FILE DEPARTMENT.FILE EMPDET.MODULE` )
67+
68+ expect ( files [ path . join ( `qrpglesrc` , `Rules.mk` ) ] ) . toContain ( `EMPLOYEES.MODULE: employees.pgm.sqlrpgle qrpgleref/constants.rpgleinc qrpgleref/empdet.rpgleinc` ) ;
69+ expect ( files [ path . join ( `qrpglesrc` , `Rules.mk` ) ] ) . toContain ( `EMPLOYEES.PGM: EMPLOYEE.FILE EMPS.FILE EMPDET.MODULE EMPLOYEES.MODULE` ) ;
70+ expect ( files [ path . join ( `qrpglesrc` , `Rules.mk` ) ] ) . not . toContain ( `EMPDET.SRVPGM` ) ; // Ensure no service program is created
7171 } ) ;
7272
7373 test ( 'makefile' , ( ) => {
0 commit comments