diff --git a/test/pascal-tests.ts b/test/pascal-tests.ts index 4fafd1a67..2caf1c798 100644 --- a/test/pascal-tests.ts +++ b/test/pascal-tests.ts @@ -54,9 +54,9 @@ describe('Pascal', () => { it('Basic compiler setup', () => { if (process.platform === 'win32') { - expect(compiler.getOutputFilename('/tmp/', 'prog.pas')).toEqual('\\tmp\\prog.s'); + expect(compiler.getOutputFilename('/tmp/', 'prog', {source: 'unit prog;\n//etc'})).toEqual('\\tmp\\prog.s'); } else { - expect(compiler.getOutputFilename('/tmp/', 'prog.pas')).toEqual('/tmp/prog.s'); + expect(compiler.getOutputFilename('/tmp/', 'prog', {source: 'unit prog;\n//etc'})).toEqual('/tmp/prog.s'); } });