2021-06-03 18:58:57 +02:00
|
|
|
import { ElectronLogService } from "jslib-electron/services/electronLog.service";
|
2020-12-11 17:44:57 +01:00
|
|
|
|
|
|
|
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);
|
|
|
|
});
|
|
|
|
});
|