mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
2c414ce27a
* Use logService for console messages * Implement a base ConsoleLog service Use this class as a default for other services that would like to output to console. This service is overriden in CLI and Desktop to use CLI's consoleLogService and electronLogService, respectively. * Use browser-process-hrtime for timing * test LogService implementations * Ignore default import of hrtime * Clean up imports. Require ConsoleLog injection Co-authored-by: Matt Gibson <mdgibson@Matts-MBP.lan>
10 lines
375 B
TypeScript
10 lines
375 B
TypeScript
import { ElectronLogService } from '../../../src/electron/services/electronLog.service';
|
|
|
|
describe('ElectronLogService', () => {
|
|
it('sets dev based on electron method', () => {
|
|
process.env.ELECTRON_IS_DEV = '1';
|
|
const logService = new ElectronLogService();
|
|
expect(logService).toEqual(jasmine.objectContaining({ isDev: true }) as any);
|
|
});
|
|
});
|