From afac253461b49a093e6218d8ed53d365f2b8f9cc Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Fri, 9 Dec 2022 13:52:56 -0500 Subject: [PATCH] Add override for technical test Signed-off-by: Sebastian Malton --- src/main/shell-session/local-shell-session/techincal.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/shell-session/local-shell-session/techincal.test.ts b/src/main/shell-session/local-shell-session/techincal.test.ts index a320e6f846..37228a6ddc 100644 --- a/src/main/shell-session/local-shell-session/techincal.test.ts +++ b/src/main/shell-session/local-shell-session/techincal.test.ts @@ -10,6 +10,7 @@ import type { Cluster } from "../../../common/cluster/cluster"; import pathExistsSyncInjectable from "../../../common/fs/path-exists-sync.injectable"; import pathExistsInjectable from "../../../common/fs/path-exists.injectable"; import readJsonSyncInjectable from "../../../common/fs/read-json-sync.injectable"; +import statInjectable from "../../../common/fs/stat.injectable"; import writeJsonSyncInjectable from "../../../common/fs/write-json-sync.injectable"; import platformInjectable from "../../../common/vars/platform.injectable"; import { getDiForUnitTesting } from "../../getDiForUnitTesting"; @@ -37,6 +38,7 @@ describe("technical unit tests for local shell sessions", () => { di.override(pathExistsSyncInjectable, () => () => { throw new Error("tried call pathExistsSync without override"); }); di.override(readJsonSyncInjectable, () => () => { throw new Error("tried call readJsonSync without override"); }); di.override(writeJsonSyncInjectable, () => () => { throw new Error("tried call writeJsonSync without override"); }); + di.override(statInjectable, () => () => { throw new Error("tried call stat without override"); }); }); describe("when on windows", () => {