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 => {