mirror of
https://github.com/bitwarden/browser
synced 2026-01-02 08:33:43 +00:00
chore(dev): Switch to using build constant for isDev check
This commit is contained in:
@@ -15,7 +15,7 @@ jest.mock("@bitwarden/desktop-napi", () => {
|
||||
|
||||
describe("ElectronLogMainService", () => {
|
||||
it("sets dev based on electron method", () => {
|
||||
process.env.ELECTRON_IS_DEV = "1";
|
||||
globalThis.BIT_ENVIRONMENT = "development";
|
||||
const logService = new ElectronLogMainService();
|
||||
expect(logService).toEqual(expect.objectContaining({ isDev: true }) as any);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user