From 77ab8b501d530190e47483cd400e85e8858b9447 Mon Sep 17 00:00:00 2001 From: Ufuk Kayserilioglu Date: Thu, 1 Feb 2024 23:56:55 +0200 Subject: [PATCH] Fix up all the fake client interfaces in tests Co-authored-by: Vinicius Stock --- src/test/suite/status.test.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/test/suite/status.test.ts b/src/test/suite/status.test.ts index 679b29fc..382f83b6 100644 --- a/src/test/suite/status.test.ts +++ b/src/test/suite/status.test.ts @@ -35,6 +35,7 @@ suite("StatusItems", () => { state: State.Running, formatter: "none", serverVersion: "1.0.0", + sendRequest: () => Promise.resolve([] as T), }, error: false, }; @@ -70,6 +71,7 @@ suite("StatusItems", () => { state: State.Running, formatter: "none", serverVersion: "1.0.0", + sendRequest: () => Promise.resolve([] as T), }, error: false, }; @@ -127,6 +129,7 @@ suite("StatusItems", () => { state: State.Running, formatter, serverVersion: "1.0.0", + sendRequest: () => Promise.resolve([] as T), }, error: false, }; @@ -154,6 +157,7 @@ suite("StatusItems", () => { state: State.Running, formatter: "none", serverVersion: "1.0.0", + sendRequest: () => Promise.resolve([] as T), }, error: false, }; @@ -186,6 +190,7 @@ suite("StatusItems", () => { state: State.Running, formatter: "none", serverVersion: "1.0.0", + sendRequest: () => Promise.resolve([] as T), }, error: false, }; @@ -224,6 +229,7 @@ suite("StatusItems", () => { state: State.Running, formatter: "none", serverVersion: "1.0.0", + sendRequest: () => Promise.resolve([] as T), }, error: false, }; @@ -290,6 +296,7 @@ suite("StatusItems", () => { state: State.Running, formatter: "auto", serverVersion: "1.0.0", + sendRequest: () => Promise.resolve([] as T), }, error: false, };