Skip to content

Commit

Permalink
Merge pull request #495 from andrechristikan/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
andrechristikan authored Nov 30, 2023
2 parents 20e4607 + cff6aa8 commit 1493ca7
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions test/helper/helper.file.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,7 @@ describe('HelperFileService', () => {

beforeEach(async () => {
const moduleRef: TestingModule = await Test.createTestingModule({
providers: [
{
provide: ConfigService,
useValue: {
get: jest.fn().mockImplementation((key: string) => {
switch (key) {
case 'file.pdf.chromeBin':
return process.env.DOCKER_INSTALLATION ===
'true'
? '/usr/bin/chromium-browser'
: null;
default:
return undefined;
}
}),
},
},
HelperFileService,
],
providers: [ConfigService, HelperFileService],
}).compile();

service = moduleRef.get<HelperFileService>(HelperFileService);
Expand Down

0 comments on commit 1493ca7

Please sign in to comment.