From 202575d74f6ade9232f5769ed79b0c3d0f8dc64c Mon Sep 17 00:00:00 2001 From: Gianluca Zuccarelli Date: Thu, 30 Jan 2025 15:45:54 +0000 Subject: [PATCH] test/mocks/cockpit: make file replace a promise This just gets rid of some of the eslint warnings. --- src/test/mocks/cockpit/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/test/mocks/cockpit/index.ts b/src/test/mocks/cockpit/index.ts index ddb3f396..18b8fe67 100644 --- a/src/test/mocks/cockpit/index.ts +++ b/src/test/mocks/cockpit/index.ts @@ -33,7 +33,11 @@ export default { }); }, close: () => {}, - replace: (contents: string) => {}, + replace: (contents: string): Promise => { + return new Promise((resolve) => { + resolve(); + }); + }, }; }, spawn: (args: string[], attributes: object): Promise => {