Skip to content

Commit e2c88b4

Browse files
committed
mock create mail service
1 parent 15ea005 commit e2c88b4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/commands/add/add-loopback/add-loopback-command.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { DbType } from '../../../db';
55
import { InquirerUtilities } from '../../../encapsulation';
66
import { AddConfiguration, AddType } from '../models';
77
import { AddLoopbackCommand } from './add-loopback.command';
8+
import { LoopbackUtilities } from '../../../loopback';
89

910
const mockConstants: MockConstants = getMockConstants('add-loopback-command');
1011

@@ -22,6 +23,7 @@ describe('AddLoopbackCommand', () => {
2223
'Database name': 'sandbox',
2324
'database type': DbType.POSTGRES
2425
}));
26+
LoopbackUtilities['createMailService'] = jest.fn(async () => {});
2527
});
2628

2729
test('should run and create new database', async () => {

src/encapsulation/cp.utilities.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ export abstract class CPUtilities {
3535
}
3636
// eslint-disable-next-line no-console
3737
console.error(ChalkUtilities.error(`Command failed: ${command}`));
38-
// eslint-disable-next-line no-console
39-
console.error(error);
4038
await exitGracefully(1);
4139
}
4240
}

0 commit comments

Comments
 (0)